AutoHotkey Community

It is currently May 26th, 2012, 11:15 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: November 15th, 2009, 3:40 am 
Offline

Joined: November 16th, 2004, 6:38 am
Posts: 153
Location: New York
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 15th, 2009, 4:10 am 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
Send, {Sleep 100}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 15th, 2009, 5:31 am 
Offline

Joined: October 22nd, 2009, 10:26 pm
Posts: 95
jaco0646 wrote:


i dont think thats he was asking


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 15th, 2009, 8:14 am 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5480
Location: the tunnel(?=light)
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.

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 15th, 2009, 8:28 pm 
Offline

Joined: November 16th, 2004, 6:38 am
Posts: 153
Location: New York
Thanks, jaco0646.

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

Jacques.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group