AutoitFaN1000 Posted July 30, 2009 Posted July 30, 2009 I feel dumb, but what function do i use to tell if a button in a gui is pressed? >_< Thanks.
AdmiralAlkex Posted July 31, 2009 Posted July 31, 2009 Open your helpfile and read ALL three pages under "GUI Reference". It will teach you how to build basic gui's in two different ways, commonly called after how they work, MessageLoop and OnEvent. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
DYONISII Posted August 2, 2009 Posted August 2, 2009 (edited) $button = GUICtrlCreateButton("Click Me", 10, 10, 80, 25) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $button msgbox(0,"Status","Yes, you did click on me!") EndSelect WEnd Edited August 2, 2009 by DYONISII http://dev.dyonisii.com/
Info Posted August 2, 2009 Posted August 2, 2009 (edited) $button = GUICtrlCreateButton("Click Me", 10, 10, 80, 25) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $button msgbox(0,"Status","Yes, you did click on me!") EndSelect WEnd AdmiralAlkex gave the OP the best advice he could get, yet you post a simple button code with missing parts such as the actual GUICreate() and includes. Edited August 2, 2009 by Info
AutoitFaN1000 Posted August 4, 2009 Author Posted August 4, 2009 Thanks alex. Also, I'm using koda, so i dont need to make the gui my self, just use it.
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