ikodan Posted August 19, 2018 Report Share Posted August 19, 2018 Hello, I want a macro activate when I stop a macro. How to do ? Quote Link to comment Share on other sites More sharing options...
acantor Posted August 19, 2018 Report Share Posted August 19, 2018 I can't think of a native way to do this in MEP. But perhaps knows of, or can think of, a hack. Perhaps every running macro writes information to a file, or to the registry, when it exits; and every macro, when it's launched, checks the file or registry and writes data to it. Quote Link to comment Share on other sites More sharing options...
terrypin Posted August 19, 2018 Report Share Posted August 19, 2018 Why not simply run the other macro with Macro Run? Quote Link to comment Share on other sites More sharing options...
ikodan Posted August 20, 2018 Author Report Share Posted August 20, 2018 Because I need that a macro run when I stop specific macros, because when I stop my macros, all the "key down" remains. I want every keys up when I stop my macros. Quote Link to comment Share on other sites More sharing options...
acantor Posted August 20, 2018 Report Share Posted August 20, 2018 I find that key "down" and key "up" commands are mostly unnecessary. I avoid them because modifier keys sometimes get "stuck" in the wrong position, which sounds like the problem you are having. Instead of this... <CTRLD>x<CTRLU> ...use this: <CONTROL>x 1 Quote Link to comment Share on other sites More sharing options...
rberq Posted August 20, 2018 Report Share Posted August 20, 2018 I have never had a problem with text like "<CTRLD>x<CTRLU> ". On the contrary, for reasons I don't understand, I sometimes found " <CONTROL>x " to be unreliable, so I always use the down-then-x-then-up sequence. For most macros, maybe you have a standard sequence of commands at the beginning, such as logging the macro name, setting mouse and keystroke speeds, and so on. (If not, you should.?) You could put something like this within the first few lines of every macro to clear any prior downs: Text Type: <CTRLU><ALTU><SHIFTU><WINU>. Of course that doesn't help clear the down keys for manual typing until some other macro runs ... I don't really know what to suggest for that.? Perhaps use Text Type: <CTRLU><ALTU><SHIFTU><WINU> immediately after ANY sequence that includes a key-down command -- when you cancel a macro, 99.9999% of the time the cancellation would not occur between the down and the subsequent up. For example, Text Type: <SHIFTD> Text Type: abcdefgABCDEFG Text Type: <CTRLU><ALTU><SHIFTU><WINU> Quote Link to comment Share on other sites More sharing options...
acantor Posted August 20, 2018 Report Share Posted August 20, 2018 I have never had a problem with text like "<CTRLD>x<CTRLU> ". On the contrary, for reasons I don't understand, I sometimes found " <CONTROL>x " to be unreliable, so I always use the down-then-x-then-up sequence. Interesting! Which of the two do others experience as more reliable? Quote Link to comment Share on other sites More sharing options...
terrypin Posted August 21, 2018 Report Share Posted August 21, 2018 Couldn't give a useful answer without fairly thorough testing of both in a wide variety of macros. I only use the longer-to-type <CTRLD>x<CTRLU> while trouble-shooting, when I try all sorts of probably irrelevant substitutions and varied delays etc. 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.