scottfromsaltlake Posted January 1, 2011 Report Share Posted January 1, 2011 Hi - I used the capture macro to capture a job I did in Microsoft Paint. Now the macro has "delay" commands after every "mouse" command. I want to speed up the macro by deleting all of the delay commands, but it's taking forever to delete them one-by-one in the scripting editor. There are probably over 1000 "delay" commands. Quote Link to comment Share on other sites More sharing options...
acantor Posted January 3, 2011 Report Share Posted January 3, 2011 You can semi-automate the process of deleting the delay commands, but you may not like the result. Your script may become unreliable. But if you want to proceed, here is one way to do it: Create a new Macro Express macro. Let's chose F12 as a hotkey activation. The script consists of three lines, which you can paste into the Scripting Editor. Text Type (Simulate Keystrokes): <F3> Delay: 100 milliseconds Text Type (Simulate Keystrokes): <DELETE> Save the macro, and open the script that contains all of the Delays you want to get rid of. Press Ctrl + F to initiate a search. Type "Delay" as the search term. Click "Find Next." Press Esc to cancel the search. At this point, you could press F3 to find for the next instance of "Delay." But instead, we will use the macro created above, which is activated by pressing F12. Press and release F12 repeatedly. Each time you do, another Delay command will disappear. 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.