TsunamiZ Posted April 10, 2006 Report Share Posted April 10, 2006 Is it possible to auto stop a playing macro when program is out of focus? Would be safer than having the macro continue to play keys beyond the desired program. Thanks. Quote Link to comment Share on other sites More sharing options...
kevin Posted April 10, 2006 Report Share Posted April 10, 2006 Is it possible to auto stop a playing macro when program is out of focus? Would be safer than having the macro continue to play keys beyond the desired program.We are considering adding the ability to automatically pause a macro if a Window loses focus. Our Keyboard Express product has this feature. In the meantime, what I do in my macros is to see if the Window has focus and give it focus if it does not. Something like this: If Not Window Title "pgmacros.com" on top Activate Window: "pgmacros.com" End If Quote Link to comment Share on other sites More sharing options...
cyberchief Posted April 10, 2006 Report Share Posted April 10, 2006 When I write my macros... they usually travel amongst screens in IE. So, At points where the screen changes... I do this: Repeat Until %T1% <> %T1% Variable Set String %T70% from Window Title If Variable %T70% contains "CSR" Break End If Delay 1 Seconds Repeat End This will send the Macro into an infinite Loop until the Window it is looking for is focused. Quote Link to comment Share on other sites More sharing options...
TsunamiZ Posted April 10, 2006 Author Report Share Posted April 10, 2006 It would be A LOT easier to have to change one setting in Macro Express, than to have to modify each macro individually. Since it's already in Keyboard Express, how soon might it be added to Macro Express? Quote Link to comment Share on other sites More sharing options...
TsunamiZ Posted April 10, 2006 Author Report Share Posted April 10, 2006 Repeat Until %T1% <> %T1% Variable Set String %T70% from Window Title If Variable %T70% contains "CSR" What exactly does that part mean? How do I modify that to fit my own window? Thanks. Quote Link to comment Share on other sites More sharing options...
TsunamiZ Posted April 10, 2006 Author Report Share Posted April 10, 2006 When I write my macros... they usually travel amongst screens in IE. So, At points where the screen changes... I do this: Repeat Until %T1% <> %T1% Variable Set String %T70% from Window Title If Variable %T70% contains "CSR" Break End If Delay 1 Seconds Repeat End This will send the Macro into an infinite Loop until the Window it is looking for is focused. But you won't be able to use a macro in another program until it resumes right? Quote Link to comment Share on other sites More sharing options...
cyberchief Posted April 11, 2006 Report Share Posted April 11, 2006 You would change "CSR" to whatever your window title reads. And you are correct... you can only run 1 Macro at a time. The below code basically will just send ME into a loop... and will just keep looking until it finds that window title, or you abort the Macro. Quote Link to comment Share on other sites More sharing options...
fredk Posted April 15, 2006 Report Share Posted April 15, 2006 Is it possible to auto stop a playing macro when program is out of focus? Would be safer than having the macro continue to play keys beyond the desired program.We are considering adding the ability to automatically pause a macro if a Window loses focus. Our Keyboard Express product has this feature. In the meantime, what I do in my macros is to see if the Window has focus and give it focus if it does not. Something like this: If Not Window Title "pgmacros.com" on top Activate Window: "pgmacros.com" End If Thanks for the idea (and cyberchief, too) since I have panicked when I occasionally lose focus and the macro runs "wild" in the wrong window. I guess I should put this kind of check in each of my macros. Quote Link to comment Share on other sites More sharing options...
aoz Posted April 16, 2006 Report Share Posted April 16, 2006 problem with that is when a window unexpectedly pops up - such as microsoft's "do you want to restsart now, your updates are installed", or AVG virus' "do you want to start testing now...", etc. actualy, a parameter that states "ONLY use in this window" would be helpful... Each answer creates its own questions... but worth looking at.. thanks Nick Quote Link to comment Share on other sites More sharing options...
TsunamiZ Posted July 11, 2006 Author Report Share Posted July 11, 2006 is this feature on its way yet? Quote Link to comment Share on other sites More sharing options...
TsunamiZ Posted March 8, 2007 Author Report Share Posted March 8, 2007 this been added to the latest version? Quote Link to comment Share on other sites More sharing options...
TsunamiZ Posted September 9, 2007 Author Report Share Posted September 9, 2007 any progress yet? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.