Jump to content
Sign in to follow this  
roadrunner

can you make a menu in autoit3

Recommended Posts

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 ? :lmao:

Share this post


Link to post
Share on other sites

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.

Share this post


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

Share this post


Link to post
Share on other sites

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 by Nova

Share this post


Link to post
Share on other sites

You need the newest beta version of autoit.

Heres a download link Newest Version

If you havent used a beta version of autoit before you are in for a huge shock.

There are so many new functions.

Enjoy :lmao:

Edited by Nova

Share this post


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]

Share this post


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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...