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 

Mouse click in other window while script is running in one.

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Seal
Guest





PostPosted: Fri Jul 02, 2004 7:14 am    Post subject: Mouse click in other window while script is running in one. Reply with quote

I faced a typical problem with a key delay on a mile long Send keys, like

SendKeys 100
!a::Send, Merry had a little lamb her fleece was as while as snow....

I want a display to mimic an auto typing by the computer for a school project. I call the hot key from notepad and it runs as expected. Now before it can finish, click on another notepad window and the output goes there instead (why is the mouse click allowed before AHK has finished?). Also if I clicked on Windows Media Player instead, all kinds of funny things happen there because of the varius keys being send to it.

I use AHK ver. 1.0.15 and Win XP (no SP)
Back to top
beardboy



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Fri Jul 02, 2004 7:40 am    Post subject: Reply with quote

You can use BlockInput, On to turn off user input and then user BlockInput, Off to turn it back on once your Send commands have finished. On NT/2000/XP you can always use Ctrl+Alt+Del to cancel the BlockInput if need be.

thanks,
beardboy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Beastmaster



Joined: 15 Apr 2004
Posts: 182

PostPosted: Fri Jul 02, 2004 8:41 am    Post subject: Reply with quote

Could you rename the target notepad window (e.g. by opening an already existing, therefore named - but empty txt file) and "assign" the keyboard/send action to this specific window ?
Back to top
View user's profile Send private message
silentblood



Joined: 19 Jun 2004
Posts: 36

PostPosted: Tue Jul 13, 2004 5:58 am    Post subject: Reply with quote

I can't remember the exact commands I used but i had my game macro scripts get the windows ID of the active wind then used controlsend with the stored variable with that ID and from then on that macro will only send to that windows ID. I am at work or I would post the commands.
Back to top
View user's profile Send private message
seal
Guest





PostPosted: Wed Jul 21, 2004 6:38 am    Post subject: Reply with quote

Thanks. Blockinput seems to be a working solution to my problem. Very Happy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports 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