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 

How to disable keyboard and mouse input during script?

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



Joined: 18 Sep 2004
Posts: 60

PostPosted: Sun Feb 27, 2005 6:26 am    Post subject: How to disable keyboard and mouse input during script? Reply with quote

Hi-
I have a script that launches processes that takes a LONG time to finish. After each process finishes, the script continues to feed keystrokes to do the next part of the script - which again takes a couple hours to finish. I want to use my computer in the meantime - but am afraid that I could mess up the execution of the script if I am typing when AHK is, at different times, executing 'send' and 'winactivate' commands while I am using the computer.

Is there a way to temporarily disable keyboard and mouse entry at specific points in my script so as not to interfere with the AHK send and winactivate commands? I need something automated (e.g. I am not always at the keyboard, so I would not want the script to pause execution and prompt me to stop using my laptop for the next 10 second while it sends keystrokes).
Back to top
View user's profile Send private message
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Sun Feb 27, 2005 6:33 am    Post subject: Reply with quote

the BlockInput cmd!
_________________
Back to top
View user's profile Send private message
JSLover



Joined: 20 Dec 2004
Posts: 542
Location: LooseChange911.com... the WTC attacks were done by the US Gov't... the official story is a lie...

PostPosted: Sun Feb 27, 2005 6:38 am    Post subject: Re: How to disable keyboard and mouse input during script? Reply with quote

BlockInput anyone?

Ha! You beat me Rajat, but I linked, so I'm still posting...
_________________

Home • Click image! • Blog
Back to top
View user's profile Send private message Visit poster's website
SAbboushi



Joined: 18 Sep 2004
Posts: 60

PostPosted: Sun Feb 27, 2005 7:21 am    Post subject: Reply with quote

Thanks - goodnight...zzzz...zzzzz Wink
Back to top
View user's profile Send private message
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