| View previous topic :: View next topic |
| Author |
Message |
Seal Guest
|
Posted: Fri Jul 02, 2004 7:14 am Post subject: Mouse click in other window while script is running in one. |
|
|
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
|
Posted: Fri Jul 02, 2004 7:40 am Post subject: |
|
|
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 |
|
 |
Beastmaster
Joined: 15 Apr 2004 Posts: 182
|
Posted: Fri Jul 02, 2004 8:41 am Post subject: |
|
|
| 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 |
|
 |
silentblood
Joined: 19 Jun 2004 Posts: 36
|
Posted: Tue Jul 13, 2004 5:58 am Post subject: |
|
|
| 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 |
|
 |
seal Guest
|
Posted: Wed Jul 21, 2004 6:38 am Post subject: |
|
|
Thanks. Blockinput seems to be a working solution to my problem.  |
|
| Back to top |
|
 |
|