Jump to content
Macro Express Forums

Screen Scrapping


arvind
 Share

Recommended Posts

Hi All,

 

I want to navigate a site, enter necessary details in the forms and at the end I want to save the desired page in HTML format.

I was able to write a Macro using window positions but it is not working correctly on all the machines and browsers.

 

Can anyone help me in solving the issue. Is there any best way to fill the form instead of using browsers window positions.

The macro designed should work on all machines and browsers.

 

Thanks,

Arvind.

Link to comment
Share on other sites

Mouse positioning is a very unreliable way to complete a form. A more machine- and browser-independent approach would be to navigate from one field to another via the tab key, maybe something like this:

 

' Place cursor in first field (maybe use the mouse?)

' Navigate to Field 1...

Text Type <TAB>

' Copy value to the Clipboard (field will be selected by default)

Text Type <CTRL>c

' Copy the Clipboard to variable T1

Set Text Variable T1 from Clipboard

 

' Navigate to next field...

Text Type <TAB>

Text Type <CTRL>c

Set Text Variable T2 from Clipboard

 

etc.

Link to comment
Share on other sites

Thanks Alan,

 

I will try.

 

Arvind.

 

Mouse positioning is a very unreliable way to complete a form. A more machine- and browser-independent approach would be to navigate from one field to another via the tab key, maybe something like this:

 

' Place cursor in first field (maybe use the mouse?)

' Navigate to Field 1...

Text Type <TAB>

' Copy value to the Clipboard (field will be selected by default)

Text Type <CTRL>c

' Copy the Clipboard to variable T1

Set Text Variable T1 from Clipboard

 

' Navigate to next field...

Text Type <TAB>

Text Type <CTRL>c

Set Text Variable T2 from Clipboard

 

etc.

Link to comment
Share on other sites

  • 2 weeks later...

I suggest staying away from any mouse related activities on a web page.

 

I use the tab technique suggested above but I also use a "home" key that puts the cursor in the same spot every time.

 

Depending on what browser you use, I have ME press 'F4' which puts the focus in the address bar ("home"). Then do repeat x times <tab> to get to the desired field.

 

Hope it helps

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