Jump to content

allowing user to decide delay


Recommended Posts

i have a script that works great, but im about to send it to a forum and everyone may not like a 30 second delay, so before the script starts i need a window to come up asking for it, anyone know how?

heres the script if anyone needs a base

MsgBox(0," ", "Put your curser on your weapon and press enter")
$mouse = MouseGetPos()
MouseClick("left")
While 1
Opt("SendKeyDelay", 500)
Send("/2 WTS")
Send("{SHIFTDOWN}")
MouseClick("left",$mouse[0],$mouse[1],1,10)
Send("{SHIFTUP}")
Send("{ENTER}")
Sleep("30000") ;30 seconds
WEnd
Link to comment
Share on other sites

$SleepTime=InputBox("Delay?","How many seconds should the delay be?",30)
MsgBox(0," ", "Put your curser on your weapon and press enter")
$mouse = MouseGetPos()
MouseClick("left")
While 1
Opt("SendKeyDelay", 500)
Send("/2 WTS")
Send("{SHIFTDOWN}")
MouseClick("left",$mouse[0],$mouse[1],1,10)
Send("{SHIFTUP}")
Send("{ENTER}")
Sleep($SleepTime*1000);whatever seconds
WEnd

Edited by evilertoaster
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...