|
Post by Johnc on Jan 3, 2019 2:19:47 GMT
Hi Steve,
While I can type ctrl-F6 to terminate a playing macro at any time, it would be nice if there is another soft-exit hot key (e.g. alt-F6) to set an internal flag such that the macro can read this flag and terminate gracefully at a predefined point (e.g. at the end of a loop).
Not sure how feasible this is as the soft-exit hot key may interfere with MMM during macro playing. Just a thought. Thanks!
|
|
|
Post by Steve on Jan 4, 2019 0:17:40 GMT
I've been thinking of a 'debug' mode for sometime now. It's not your 'soft exit' but would playback the macro testing all the conditions, mouse and keyboard entries, without actually doing their action. It would be good for testing a macro.
The 'soft exit' hotkey is a good idea and kinda -sorta- on the same lines.
Thanks John.
|
|
|
Post by Johnc on Jan 4, 2019 2:22:02 GMT
Steve, I am not sure if your debug hot key idea is "on the same line" with the "soft-exit" hot key. I think all the soft-exit hot key does is to set an internal Boolean variable to TRUE. That's all. Nothing else. The macro will need to be coded accordingly to make use of this Boolean variable to perform an exit or jump to handle a special condition. In other words, if nothing in a macro is written to check this Boolean variable, the "soft-exit" key will do nothing! Cheers!
|
|
|
Post by Steve on Jan 4, 2019 22:42:01 GMT
maybe something like a hotkey that runs a specific condition, macro, or series of conditions. Like a hotkey to a function or something similar.
|
|
|
Post by Johnc on Jan 5, 2019 1:48:19 GMT
This soft-exit hot key I am suggesting will be useful while a Macro is currently running and the user just wants to change the Macro's behavior. e.g. exit it early gracefully or pause to obtain user input etc... It is not an interrupt. The hot-key just sets an internal Boolean variable to TRUE. Thanks! B)
|
|