Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

How to set delay between 2 keystrokes?


  • Please log in to reply
5 replies to this topic
LKY
  • Members
  • 2 posts
  • Last active: Apr 20 2012 02:25 AM
  • Joined: 20 Apr 2012
I am trying to write script for login and wait for server respone before entering password

my current code is:

$^h::
Send loginname{Enter}
SetKeyDelay, 1000
Send password{Enter}
return

How could i insert a dealy between to operations? :?

dmg
  • Members
  • 2395 posts
  • Last active: Nov 04 2015 06:46 AM
  • Joined: 19 Nov 2010
What you are looking for is the Sleep command:
sleep, 1000

"My dear Mr Gyrth, I am never more serious than when I am joking."
~Albert Campion

-----------------------------------------------------------------------------------------------
Website | Demo scripts | Blog | External contact

LKY
  • Members
  • 2 posts
  • Last active: Apr 20 2012 02:25 AM
  • Joined: 20 Apr 2012

What you are looking for is the Sleep command:

sleep, 1000

It is working perfectly. Thank you! :p

PJL
  • Members
  • 2 posts
  • Last active: Mar 11 2015 10:05 AM
  • Joined: 11 Mar 2015

This is about the same...   Iam trying to send text then pause until the next keystroke....IE

 

::/ready::Blah Blah Blah{enter} {pause} (then the 2nd keystroke) More blah blah blah {enter}

 

Thanks in advance.....



Exaskryz
  • Members
  • 3249 posts
  • Last active: Nov 20 2015 05:30 AM
  • Joined: 23 Aug 2012

This is about the same...   Iam trying to send text then pause until the next keystroke....IE

 

::/ready::Blah Blah Blah{enter} {pause} (then the 2nd keystroke) More blah blah blah {enter}

 

Thanks in advance.....

 

::/ready::
Send Blah Blah Blah{enter}
Sleep 1500
Send More blah blah blah {enter}
return

 

(I wasn't sure if you actually wanted the {pause} keystroke or if you meant for that to be the Sleep.)



PJL
  • Members
  • 2 posts
  • Last active: Mar 11 2015 10:05 AM
  • Joined: 11 Mar 2015

I wanted it to pause until the next keystroke.....   That may be from a few seconds to a min. or 2......  I have the sleep think working

 

Thanks