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 

My script is too quick! How can I best handle it?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
panofish



Joined: 06 Feb 2007
Posts: 5

PostPosted: Wed May 14, 2008 6:37 pm    Post subject: My script is too quick! How can I best handle it? Reply with quote

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
View user's profile Send private message
sinkfaze



Joined: 19 Mar 2008
Posts: 138

PostPosted: Wed May 14, 2008 7:25 pm    Post subject: Reply with quote

Perhaps this thread will be helpful to you:

Trigger after an hourglass?
_________________
Have trouble searching the site for information? Try Quick Search for Autohotkey.
Back to top
View user's profile Send private message
panofish



Joined: 06 Feb 2007
Posts: 5

PostPosted: Wed May 14, 2008 8:33 pm    Post subject: Reply with quote

yes... my post suggests the same solution... but I was wondering what more I can do to slow down keystrokes.
Back to top
View user's profile Send private message
TheIrishThug



Joined: 19 Mar 2006
Posts: 363

PostPosted: Wed May 14, 2008 8:36 pm    Post subject: Reply with quote

SetKeyDelay
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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