Jump to content
Macro Express Forums

Slow Down Speed If A Program Is Slow


koden

Recommended Posts

Rusty you might consider using the "Wait for Window Title to Lose Focus" command.

 

I used to worry a lot about speed and timing but eventually I learned that the better way was to use smart controls. This way the macro always runs as fast as it can and I don’t have to constantly tweak it for every machine.

 

Things like waiting for a file to exist and then file to be ready. Controls are often a really good way as well. You see many time when you click a button and the program goes away to think about it some of the controls are inactivated until the program is ready to accept input. Also if you need to mouse click on a control in a popup dialog box and already have the control variable defined it works well to simply Wait for Control. This is often better than Wait for Window Title because sometimes the window will appear but not be ready yet. Also look at status bars which are usually controls. Often they will tell you something like “Loading…” and then change to “Ready” when the program is done. Wait for Mouse cursor is awesome too. Most programs will make the cursor ‘hour glass’ until it’s ready again.

 

Anyway my 2¢ is to spend your time finding smart ways to control timing instead of tweaking speed settings. Sometimes it's inevitible but in my experiance it's only 1 time in 100 that I need to inject a dumb delay and I've never had to use the playback speed control. IMHO you will be a lot better off in the end without them.

 

I know when you're just using a recorded macro you might not be into the scripting editor too much but if you’re getting to this stage of your macro writing you might consider writing your macros directly instead of using the recorder. The recorder is like bicycle training wheels. It’s good for driving up and down the driveway and getting your feet wet but you’ll never go fast (or corner) until you take them off. In fact just like training wheels they can be counterproductive at a certain point.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...