bobaol Posted June 8, 2012 Report Share Posted June 8, 2012 Hello, i am using ME Pro 22.214.171.124. I have a macro that runs and runs and runs. I want that macro to stop at 3pm. It can be 3:10pm or 3:35pm. really does not matter. I read the post http://pgmacros.invisionzone.com/index.php?showtopic=4277 But I am stuck. Here is how I am approaching it. Forgive me, as I am not good with taking a "how it works" and translating it into the actual code. So, I am posting my code here. And if you are replying, please please post code. ok... so using the Note Pad method that I read from the post.... This is what I created. The name of my macro is P4612 Line 01. Activate or Launch: Window "Notepad", Program "NOTEPAD.EXE", Parameters "" Line 02. Delay: 1 seconds Line 03. Variable Set Integer %N%: Set to the Current Hour Line 04. Delay: 1 seconds Line 05. Activate or Launch: Window "Notepad", Program "NOTEPAD.EXE", Parameters "" Line 06. Text Type (Simulate Keystrokes): <ALT> Line 07. Text Type (Simulate Keystrokes): e Line 08. Text Type (Simulate Keystrokes): a Line 09. Text Type (Simulate Keystrokes): <DELETE> Line 10. Text Type (Simulate Keystrokes): %N% ok....those ten lines gave me the Hour in NotePad. When the value in NotePad says 15 (15 is 3pm), I want macro P4612 to stop running. So I created a macro named P4613. However, I have no idea as to how to write the code that says: check the value in NotePad. If the value in NotePad is 15, then Macro Stop. Any help is appreciated. 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.