Jump to content

On Exit?


Recommended Posts

for the other post

er............ ye, i thought so............. :mellow:

look, im new to this, i have just spent ages making a l33t program and all i want is a lil effect so how would i go about doing that script then? please all i need is this one script :)

sorry, i thought my first post explained it enough. here ya go.

#include<guiconstants.au3>
$mainwindow = GUICreate("Hello World", 200, 100)
GUICtrlCreateLabel("Hello world! How are you?", 30, 10)
$okbutton = GUICtrlCreateButton("OK", 70, 50, 60)
$dummywindow = GUICreate("Dummy window for testing ", 200, 100)

GUISwitch($mainwindow)
GUISetState(@SW_SHOW)

While 1
  $msg = GUIGetMsg(1)

  Select
    Case $msg[0] = $okbutton
      MsgBox(0, "GUI Event", "You pressed OK!")

    Case $msg[0] = $GUI_EVENT_CLOSE And $msg[1] = $mainwindow 
      For $i = 255 to 0 step -5
WinSetTrans("Hello World", "", $i)
Sleep(10)
Next
      ExitLoop
  EndSelect
WEnd
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...