Jump to content

can you make a menu in autoit3


Recommended Posts

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 post
Share on other sites

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 by layer
FootbaG
Link to post
Share on other sites

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 post
Share on other sites

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...