Jump to content

okay im new to auto it


Kinjid
 Share

Recommended Posts

Okay first one

msgbox(04, "Welcome", "Would you like to continue?")

okay that makes it as Yes/No but what i dont know how to do is how to like if a person picks yes make its make a gui screen appear, or no, make it exit with a msg saying Good bye.

Link to comment
Share on other sites

Okay first one

msgbox(04, "Welcome", "Would you like to continue?")

okay that makes it as Yes/No but what i dont know how to do is how to like if a person picks yes make its make a gui screen appear, or no, make it exit with a msg saying Good bye.

$pass = msgbox(04, "Welcome", "Would you like to continue?");Assigns the answer of the message box to a value

If $pass = 7 then;If the value is 7 it means the user clicked no
    Msgbox(0, "Good bye", "Have a nice day!")
    Exit 
EndIf 

GuiCreate('Testing');Create the window

GuiSetState();Show the window

While 1;Loop forever or until exited
    Switch GuiGetMsg();Receive any events that happen to the window you created
        Case -3;If the exit button was pressed (this could also be $GUI_EVENT_CLOSE)
            Exit
            
    EndSwitch 
WEnd

EDIT: Welcome to the forums!

EDIT2: Added the part about when the user says no.

Edited by Piano_Man
My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
Share on other sites

It would be cool if there was like an admin section where you need the password to continue..

um this isnt a thing where there needs to be a admin section, im making a auto-bot for runescape.

Did I miss something??? :)

I'm not sure i think he is a noob, I think we better start spraying N00B repeliant :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...