Jump to content
Macro Express Forums

Macro Change due to browser upgrade


ckandarian
 Share

Recommended Posts

We recently upgraded an aging pc and with it we went from IE 6 to IE 8, we had existing macro that worked in our order packing operation. With new IE the cursor stops at the favorites icon and wil not tab to where we need it.

oroginal macro:

 

Get Control%C1%

Text Type<ENTER>

Wait for Web Page: "pack_display"

Mouse Move Screen 650,350

Delay 10 Seconds

Mouse Left Button Click

Text Type<CONTROL>p

Wait for Window Title:"HP Laserjet 4100 PCL 6 Properties"

Delay 3 seconds

Text Type:<ARROW DOWN>

Text Type:<ENTER>

Text Type:<ENTER>

Wait Window Lose Focus: "Print"

Delay 3 seconds

Mouse Move Relative to Control%C1%:20,20

Delay 3 seconds

Mouse Left Button Click

Text Type:<TAB>

 

it seems to work until the Mouse Move Relative to Control%C1%:20,20 part of the command

Link to comment
Share on other sites

We recently upgraded an aging pc and with it we went from IE 6 to IE 8, we had existing macro that worked in our order packing operation. With new IE the cursor stops at the favorites icon and wil not tab to where we need it.

oroginal macro:

 

Get Control%C1%

Text Type<ENTER>

Wait for Web Page: "pack_display"

Mouse Move Screen 650,350

Delay 10 Seconds

Mouse Left Button Click

Text Type<CONTROL>p

Wait for Window Title:"HP Laserjet 4100 PCL 6 Properties"

Delay 3 seconds

Text Type:<ARROW DOWN>

Text Type:<ENTER>

Text Type:<ENTER>

Wait Window Lose Focus: "Print"

Delay 3 seconds

Mouse Move Relative to Control%C1%:20,20

Delay 3 seconds

Mouse Left Button Click

Text Type:<TAB>

 

it seems to work until the Mouse Move Relative to Control%C1%:20,20 part of the command

I haven't used IE 8 so I could be completely off, and I generally have little luck with Controls; but if it used to work, and the new IE accepts them, you may simply need to re-define %C1% in the Get Control %C1% command.

 

Anybody else have any suggestions?

Link to comment
Share on other sites

  • 2 weeks later...
...you may simply need to re-define %C1% in the Get Control %C1% command.

You're right. A specific Window Control generally changes from one version of a program to another. Some people use this to determine which version of a program is running (e.g. Word 2003 vs Word 2007).

 

You will need to recapture the control in the Get Control command.

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

×
×
  • Create New...