Jump to content

Recommended Posts

Posted

Hi everyone!

I need to specify action for a button, which was create inside function (Func () / EndFunc)

Is anyone knows?

Thanks for help!

Posted

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
Posted

#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

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
  • Recently Browsing   0 members

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