roadrunner Posted January 23, 2005 Share Posted January 23, 2005 Hi Everone, I have been using auto it 3 for some time now and would like to create a menu ie press 1 to install program press 2 to install update press 3 to quit I think you get the idear now, but i have had great difficults trying to do it. any idears ? Link to comment Share on other sites More sharing options...
Insolence Posted January 23, 2005 Share Posted January 23, 2005 Menu? Like a GUI? Please post this in the right forum, I'll help you there. "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar. Link to comment Share on other sites More sharing options...
layer Posted January 23, 2005 Share Posted January 23, 2005 (edited) like: #include <GUIConstants.au3> GUICreate("My GUI Button"); will create a dialog box that when displayed is centered Opt("GUICoordMode",2) $but1= GUICtrlCreateButton ("OK", 10, 30, 50) $but2= GUICtrlCreateButton ( "Cancel", 0, -1) GUISetState () ; will display an dialog box with 2 button ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() if $msg= $but1 then MsgBox (0, "Ok", "You hit the ok button") if $msg= $but2 then MsgBox (0, "Exiting", "You hit cancel, after you close this box, the GUI will exit") exit endif If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend or do you mean like a batch file? hoow they have all that choice stuff? Edited January 23, 2005 by layer FootbaG Link to comment Share on other sites More sharing options...
Nova Posted January 23, 2005 Share Posted January 23, 2005 (edited) Menu? Like a GUI?Click this link http://www.autoitscript.com/fileman/users/public/Nova/theres 3 custom GUI menu script ideas, take your choice. Edited January 23, 2005 by Nova Link to comment Share on other sites More sharing options...
roadrunner Posted January 23, 2005 Author Share Posted January 23, 2005 where can i get the file "GUIConstants.au3" as all these script use it ? Link to comment Share on other sites More sharing options...
Nova Posted January 23, 2005 Share Posted January 23, 2005 (edited) You need the newest beta version of autoit.Heres a download link Newest VersionIf you havent used a beta version of autoit before you are in for a huge shock.There are so many new functions.Enjoy Edited January 23, 2005 by Nova Link to comment Share on other sites More sharing options...
zcoacoaz Posted January 30, 2005 Share Posted January 30, 2005 write this at the top of your script #include <GUICONSTANTS.au3> [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] 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