Creating Personalized Google Map

Information related to the use of iMacros for form filling and data upload.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team
Post Reply
Hannes, Tech Support

Creating Personalized Google Map

Post by Hannes, Tech Support » Mon Oct 13, 2008 7:39 am

google.map.png
google.map.png (233.02 KiB) Viewed 45963 times
Creating a new personalized Google map tricks the iMacros browser in two ways:

1) The browser will not recognize the page being fully loaded
2) The text fields for the map's title and description are not standard HTML form elements

Solutions:
1) Make the macro (temporarily) ignore timeout errors and shorten the timeout value.
2) Use DS for filling these fields (including the deletion of the default title that Google presents).

Here's the macro (you will need to be logged in to Google):

Code: Select all

VERSION BUILD=6221002
TAB T=1
TAB CLOSEALLOTHERS
'work around iMacros not recognizing that the page is fully loaded
SET !ERRORIGNORE YES
SET !TIMEOUT 5
URL GOTO=http://maps.google.com/maps
SET !ERRORIGNORE NO
SET !TIMEOUT 60
'end of workaround
TAG POS=1 TYPE=SPAN ATTR=TXT:My<SP>Maps
'New page loaded
'New page loaded
'New page loaded
TAG POS=1 TYPE=A ATTR=TXT:Create<SP>new<SP>map
TAG POS=2 TYPE=INPUT:RADIO FORM=NAME:NoFormName ATTR=NAME:ms_index_status&&VALUE:on CONTENT=YES
WAIT S=2
'delete old title using DS 
DS CMD=MOVETO X=170 Y=342   
DS CMD=LDOWN X=172 Y=340   
DS CMD=LUP X=172 Y=340   
DS CMD=MOVETO X=169 Y=338   
DS CMD=MOVETO X=160 Y=335   
DS CMD=LDOWN X=159 Y=335   
DS CMD=MOVETO X=7 Y=339   
DS CMD=LUP X=-1 Y=337   
DS CMD=KEY X=7 Y=339 CONTENT={BACKSPACE}
' enter new title and description usign DS
DS CMD=MOVETO X=85 Y=329   
DS CMD=LDOWN X=85 Y=329   
DS CMD=LUP X=85 Y=329   
DS CMD=KEY   CONTENT=title  
DS CMD=MOVETO X=79 Y=388   
DS CMD=LDOWN X=79 Y=388   
DS CMD=LUP X=79 Y=388   
DS CMD=KEY   CONTENT=description  
[Edit: Added annotated screenshot]
Post Reply