| View previous topic :: View next topic |
| Author |
Message |
panofish
Joined: 06 Feb 2007 Posts: 5
|
Posted: Wed May 14, 2008 6:37 pm Post subject: My script is too quick! How can I best handle it? |
|
|
I have a subroutine that I call whenever there is an operation during the script whenever there will be an unknown amount of wait time (hourglass curs) like during a file open. See checkcursor subroutine below.
However, there are still time when the computer will send keys too fast and I will need to add sleep commands between keys or other sections of script where there is no hourglass to check.
Is there a better way to handle this? Everytime I create a new script, I have to add sleep commands everywhere until it works properly!!!
checkcursor()
{
Loop
{
MouseMove, 30, 10
Sleep, 100
MouseMove, 40, 10
If A_Cursor not contains AppStarting,Wait
{
Sleep, 100
Break
}
}
return
} |
|
| Back to top |
|
 |
sinkfaze
Joined: 19 Mar 2008 Posts: 138
|
|
| Back to top |
|
 |
panofish
Joined: 06 Feb 2007 Posts: 5
|
Posted: Wed May 14, 2008 8:33 pm Post subject: |
|
|
| yes... my post suggests the same solution... but I was wondering what more I can do to slow down keystrokes. |
|
| Back to top |
|
 |
TheIrishThug
Joined: 19 Mar 2006 Posts: 363
|
Posted: Wed May 14, 2008 8:36 pm Post subject: |
|
|
| SetKeyDelay |
|
| Back to top |
|
 |
|