| View previous topic :: View next topic |
| Author |
Message |
zebedee Guest
|
Posted: Wed Apr 20, 2005 3:12 pm Post subject: Active Window |
|
|
It's probably a very obvious solution, but is there a way of ensuring that a script continues to run in it's own window whilst I do something in another window....? Am i making sense? It seems that my scripts run fine if left alone but if I touch the mouse or keyboard or don anything else the focus shifts and the script goes AWOL and trys to perform it's actions in my window.....
Any help is appreciated
Thanks  |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5390 Location: /b/
|
Posted: Wed Apr 20, 2005 3:28 pm Post subject: |
|
|
It really depends what you're doing. If you're making your script do mouse movements and simulate keystrokes you might have to use alternatives like ControlClick or ControlSend instead (which may not work as great?), otherwise, use things like WinActivate or ControlFocus to keep focus to your script. _________________
 |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Wed Apr 20, 2005 3:31 pm Post subject: |
|
|
| No way pal. In any case where you've to fight with a running process about the access to the mouse and/or keyboard, your lost. AFAIK only Control-commands and Post-/SendMessage events won't interfere any manual action ... |
|
| Back to top |
|
 |
|