Yehnfikm8Gq Posted February 16, 2010 Report Share Posted February 16, 2010 I've been working on resolving the "If key is pressed.." scenario (as opposed to "Wait for key press"). That would allow user decisions while a repeat is running, like stop the repeat and process results obtained so far; print results now; jump to another part of the macro. I started off with an External Script version that passes the keypress via the Console/Text Variable but it's slow due to opening and closing the script and user32.dll. The Text Variable is examined in the repeat loop and action taken if valid. I then produced a working AutoIt exe that runs in parallel to ME and passes the pressed key to ME via an ini file. This is moderately fast, adding about 2secs for 1000 repeats in ME. I've been looking at passing to ME via a ConsoleWrite from the exe file. As far as I can see, ME cannot read from the console other than via an External Script. Is that the case? I don't want to use the Clipboard in case the main macro is using it. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.