AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

In-line delays/sleeps in keystroke lists?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
JBensimon



Joined: 16 Nov 2004
Posts: 149
Location: New York

PostPosted: Sun Nov 15, 2009 2:40 am    Post subject: In-line delays/sleeps in keystroke lists? Reply with quote

I use AutoHotkey mostly as a straight programming language and therefore haven't run into this earlier, but while helping a friend write a script that controls his browser by sending keystrokes, I was surprised to find that the Send/SendInput/etc... commands don't offer a way to intersperse explicit delays within the keystroke list, necessitating code that looks like this
Code:
SendInput, {Enter}
Sleep, 1000
SendInput, {Tab 12}
Sleep, 2000
SendInput, ^v
Sleep, 1000
SendInput, {Enter}

rather than something like (the ficticious)
Code:
SendInput, {Enter}{Sleep 1000}{Tab 12}{Sleep 2000}^v{Sleep 1000}{Enter}

Would it make sense to offer something of the sort?

Jacques.
Back to top
View user's profile Send private message Visit poster's website
jaco0646



Joined: 07 Oct 2006
Posts: 1770
Location: MN, USA

PostPosted: Sun Nov 15, 2009 3:10 am    Post subject: Reply with quote

Send, {Sleep 100}
_________________
http://autohotkey.net/~jaco0646/
Back to top
View user's profile Send private message Visit poster's website
nostroke



Joined: 22 Oct 2009
Posts: 93

PostPosted: Sun Nov 15, 2009 4:31 am    Post subject: Reply with quote

jaco0646 wrote:
Send, {Sleep 100}


i dont think thats he was asking
Back to top
View user's profile Send private message
sinkfaze



Joined: 18 Mar 2008
Posts: 2427

PostPosted: Sun Nov 15, 2009 7:14 am    Post subject: Reply with quote

nostroke wrote:
i dont think thats he was asking


Actually, it was. This wish has been previously requested so he was directing him to that latest request and the possible solutions people were coming up with.
_________________
Try Quick Search for Autohotkey or see the tutorial for newbies.
Back to top
View user's profile Send private message
JBensimon



Joined: 16 Nov 2004
Posts: 149
Location: New York

PostPosted: Sun Nov 15, 2009 7:28 pm    Post subject: Reply with quote

Thanks, jaco0646.

I had searched for a similar request but didn't find this one. Same sample syntax too.

Jacques.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group