Beetlebailey Posted May 1, 2015 Share Posted May 1, 2015 So I made a little Tardis GUI that I call from another application (kinda stupid Easter egg). and I'd like so that when you open the GUI it spins a couple few times then stops.Could someone perhaps point me in the right direction for animating my GUI?#include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $Form1_1 = GUICreate("Form1", 309, 558, 516, 407) GUISetBkColor(0x0066CC) $Pic1 = GUICtrlCreatePic("C:\Users\ry207033\Desktop\Dr. Windows.jpg", 32, 64, 100, 100) $Pic2 = GUICtrlCreatePic("C:\Users\ry207033\Desktop\Dr. Windows.jpg", 176, 64, 100, 100) $Pic3 = GUICtrlCreatePic("C:\Users\ry207033\Desktop\police box.jpg", 40, 16, 228, 28) $Pic4 = GUICtrlCreatePic("C:\Users\ry207033\Desktop\Dr. Box.jpg", 32, 200, 100, 100) $Pic5 = GUICtrlCreatePic("C:\Users\ry207033\Desktop\Dr. Box.jpg", 32, 320, 100, 100) $Pic6 = GUICtrlCreatePic("C:\Users\ry207033\Desktop\Dr. Box.jpg", 32, 432, 100, 100) $Pic7 = GUICtrlCreatePic("C:\Users\ry207033\Desktop\Dr. Box.jpg", 176, 200, 100, 100) $Pic8 = GUICtrlCreatePic("C:\Users\ry207033\Desktop\Dr. Box.jpg", 176, 320, 100, 100) $Pic9 = GUICtrlCreatePic("C:\Users\ry207033\Desktop\Dr. Box.jpg", 176, 432, 100, 100) $Pic10 = GUICtrlCreatePic("C:\Users\ry207033\Desktop\knob.jpg", 176, 280, 20, 20) $Pic11 = GUICtrlCreatePic("C:\Users\ry207033\Desktop\dr police paper.jpg", 40, 208, 84, 84) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEndThanks! Link to comment Share on other sites More sharing options...
spudw2k Posted May 1, 2015 Share Posted May 1, 2015 I'd wager that _GDIPlus functions will suit your needs, but I'm not very adept at GDI+. UEZ is a resident expert...perhaps he'll chime in.I am familiar with a way to display an animated GIF in a GUI. http://www.autoitscript.com/forum/topic/96132-gif-animation/?page=1 Perhaps that is a venue you may want to pursue. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
UEZ Posted May 1, 2015 Share Posted May 1, 2015 @Beetlebailey: what do you mean with animating the gui? You want some self created animations or want to display an external animation like GIF or a movie file? Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Beetlebailey Posted May 1, 2015 Author Share Posted May 1, 2015 thank you guys UEZ: I'd like to have gui itself move upon opening (along the same lines as "MouseMove") where you can control on the monitor it's location Link to comment Share on other sites More sharing options...
UEZ Posted May 1, 2015 Share Posted May 1, 2015 Then have a look to WinMove. Beetlebailey 1 Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Beetlebailey Posted May 4, 2015 Author Share Posted May 4, 2015 (edited) Perfect looks like the function I need!! Thank you mucho! Edited May 4, 2015 by Beetlebailey Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now