Kivin Posted February 2, 2007 Share Posted February 2, 2007 Hi everyone! I need to specify action for a button, which was create inside function (Func () / EndFunc) Is anyone knows? Thanks for help! Link to comment Share on other sites More sharing options...
someone Posted February 2, 2007 Share Posted February 2, 2007 Not quite sure what you mean, maybe HotKeySet?? Do you want something to happen when a key is pressed? While ProcessExists('Andrews bad day.exe') BlockInput(1) SoundPlay('Music.wav') SoundSetWaveVolume('Louder') WEnd Link to comment Share on other sites More sharing options...
Kivin Posted February 2, 2007 Author Share Posted February 2, 2007 I want, that something happen when a button is pressed (for example ExitLoop) Link to comment Share on other sites More sharing options...
James Posted February 2, 2007 Share Posted February 2, 2007 #include <GUIConstants.au3> GUICreate("Button", 137, 60, -1, -1) $Button = GUICtrlCreateButton("&Click me", 8, 8, 121, 41, 0) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit Case $Button MsgBox(0, "Button", "This is what happens when you press me!") EndSwitch WEnd Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ 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