Jump to content

Animating GUI


Recommended Posts

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
WEnd

Thanks!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

@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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...