Code: Select all
loop
{
Send, test
send, {Enter}
sleep, 500
Send, test
send, {Enter}
sleep, 1000
I want a way that i can adjust all sleep lengths by a certain number using my gui edit box.
So if i put the number -500 in my edit box it will minus 500 from all sleep lenghts or 500 to add 500 to all sleep durations.
But the minimum for the sleep is 0, so if its (sleep, 500 + -600) instead of being -100 its just 0
im guesing it will look something like this:
Code: Select all
Gui, Add, Edit, x200 y90 cblack w60 h15 vSleep, 0
loop
{
Send, test
send, {Enter}
sleep, 500 + %Sleep% ;Something like this?
Send, test
send, {Enter}
sleep, 1000 + %Sleep% ;Something like this?