Jump to content
Macro Express Forums

Problem With Timing?


cuppanews

Recommended Posts

I'm using Firefox and ME. My macro starts on a web page by grabbing the window title, URL, and some highlighted text. Then it switches to another browser tab (Ctrl-1) and pastes the grabbed text into the form.

 

The problem I'm having is that the Mouse Move command seems really erratic. Sometimes it puts the cursor in the right field, sometimes it doesn't. Sometimes it pastes the correct text in the correct field, but then immediately pastes text intended for another field immediately following.

 

As you can see, I've put some Waits into the macro, but they don't seem to be helping.

 

// Get the window title and copy into a string variable.
Get Control %C1% (- Mozilla Firefox: )
Variable Get Control Text: %C1% to %T1%
// Copy selected text into a string variable.
Clipboard Copy
Variable Set String %T2% from Clipboard
Text Type:<CONTROL>l
// Copy the URL into a string variable.
Clipboard Copy
Variable Set String %T3% from Clipboard
// Switch to the Control Panel browser tab.
Text Type: <CONTROL>1
Wait For Window Title: "ExpressionEngine"
Mouse Move Screen 75, 285
Text Type: %T1%
Wait Text Playback
Mouse Move Screen 75, 560
Text Type: %T2%

 

Any suggestions? Thanks.

Link to comment
Share on other sites

Everything sure looks fine. Maybe possible add a short delay after the mouse move command. Sometimes I find this necessary.

 

Instead of the second mouse move to the next field, can you get focus to it by using the TAB key? Even a bunch of TAB keystrokes played back by ME can complete very quickly.

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...