Sign in to follow this  
Followers 0
Kinjid

okay im new to auto it

10 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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]

Share this post


Link to post
Share on other sites

okay one more, whats a program that you know of that makes guis and gives you the code? for the gui?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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 :)

Share this post


Link to post
Share on other sites

Oh, no sorry about that lol.. i sorta went off topic

Share this post


Link to post
Share on other sites

Oh, no sorry about that lol.. i sorta went off topic

ya...

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  
Followers 0