James Posted November 25, 2006 Share Posted November 25, 2006 (edited) I made a GUI for my program: #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form=C:\Documents and Settings\James\My Documents\Touch en Stride\Programs\GUI.kxf $title = GUICreate("", 633, 305, 239, 292) GUISetCursor (2) $infogroup = GUICtrlCreateGroup("", 8, 8, 609, 97) $stopico = GUICtrlCreateIcon("icon.ico", 0, 24, 40, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP)) GUICtrlSetTip(-1, "") $disclaimer = GUICtrlCreateInput("", 72, 48, 529, 21, BitOR($ES_AUTOHSCROLL)) GUICtrlCreateGroup("", -99, -99, 1, 1) $start = GUICtrlCreateButton("Start", 16, 128, 145, 41, 0) $startinfo = GUICtrlCreateInput("", 176, 136, 401, 21) $stop = GUICtrlCreateButton("Stop", 16, 184, 145, 41, 0) $stopinfo = GUICtrlCreateInput("", 176, 192, 401, 21) $hide = GUICtrlCreateButton("Hide Window", 16, 240, 145, 41, 0) $hideinfo = GUICtrlCreateInput("To open it press CTRL+ALT+E", 176, 248, 401, 21) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Now I need to know how to make something happen when I press a button. Im making a desktop ball, but I need to run the ball sepratley. Edited November 26, 2006 by Secure_ICT Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
James Posted November 26, 2006 Author Share Posted November 26, 2006 BUMP Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Touch Posted November 26, 2006 Share Posted November 26, 2006 I have also made a GUI for a small game I made but I cant get the buttons to work either, and I'm not sure how to use the helpfiles code. [center][font="Arial"]If practise makes perfect and no-ones perfect whats the point of practise?[/font]Sorry for my rude attitude when I started here.[/center] Link to comment Share on other sites More sharing options...
James Posted November 26, 2006 Author Share Posted November 26, 2006 Oh. I thought you were gonna help me then But as you can't do it either then were both stuffed. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Developers Jos Posted November 26, 2006 Developers Share Posted November 26, 2006 Oh. I thought you were gonna help me then But as you can't do it either then were both stuffed.Have you looked at the Helpfile GUICTRLCreateButton() ? you might get a hint there ... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
James Posted November 26, 2006 Author Share Posted November 26, 2006 Yes, but I still can't get it working Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
James Posted November 26, 2006 Author Share Posted November 26, 2006 Woo.. I got it working! Now how do I end a program which is currently hidden from view? 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