Sign in to follow this  
Followers 0
Dead_Man

allowing user to decide delay

3 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

$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

Share this post


Link to post
Share on other sites

thanks :whistle:

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