| View previous topic :: View next topic |
| Author |
Message |
JBensimon
Joined: 16 Nov 2004 Posts: 149 Location: New York
|
Posted: Sun Nov 15, 2009 2:40 am Post subject: In-line delays/sleeps in keystroke lists? |
|
|
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 |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 1770 Location: MN, USA
|
|
| Back to top |
|
 |
nostroke
Joined: 22 Oct 2009 Posts: 93
|
Posted: Sun Nov 15, 2009 4:31 am Post subject: |
|
|
i dont think thats he was asking |
|
| Back to top |
|
 |
sinkfaze
Joined: 18 Mar 2008 Posts: 2427
|
Posted: Sun Nov 15, 2009 7:14 am Post subject: |
|
|
| 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 |
|
 |
JBensimon
Joined: 16 Nov 2004 Posts: 149 Location: New York
|
Posted: Sun Nov 15, 2009 7:28 pm Post subject: |
|
|
Thanks, jaco0646.
I had searched for a similar request but didn't find this one. Same sample syntax too.
Jacques. |
|
| Back to top |
|
 |
|