Page 1 of 1

How do i make the whole script sleep for 1.2 seconds before accepting any input again?

Posted: 19 Jan 2019, 12:10
by lolleroman
At the moment this is my solution:

Code: Select all

1::
   sleep, % ran(1200, 1225)
 {
   sendinput, {9}
   sleep, % ran(100, 110)
   sendinput, {F6}
 }
return

2::
   sleep, % ran(1200, 1225)
 {
   sendinput, {9}
   sleep, % ran(100, 110)
   sendinput, {F7}
 }
return

3::
   sleep, % ran(1200, 1225)
 {
   sendinput, {9}
   sleep, % ran(100, 110)
   sendinput, {F8}
 }
return

4::
   sleep, % ran(1200, 1225)
 {
   sendinput, {9}
   sleep, % ran(100, 110)
   sendinput, {F9}
 }
return

5::
   sleep, % ran(1200, 1225)
 {
   sendinput, {9}
   sleep, % ran(100, 110)
   sendinput, {F10}
 }
return
ran(min, max)
 {
   random, ran, min, max
   return ran
 }
But its not really viable since it feels like i have a 1.2k ms lag all the time.

Re: How do i make the whole script sleep for 1.2 seconds before accepting any input again?

Posted: 19 Jan 2019, 14:46
by mast4rwang
well, you added a pause of 1200 ms for each of your hotkeys xd

hint:
Spoiler

Re: How do i make the whole script sleep for 1.2 seconds before accepting any input again?

Posted: 19 Jan 2019, 15:10
by SL5