Demo-AJAX-Tree

(Copy URL in PhpBB Forum Format - Info)

From iMacros

Jump to: navigation, search

This script automates an AJAX tree view, using drag & drop. Note that this solution does not require fixed coordinates, rather it uses the position of certain HTML page element, as returned by the !TAGX and !TAGY variables. With this method, iMacros can locate (and move) tree elements anywhere on the page. The only requirement is that the tree elements they are visible in the web browser, so the DirectScreen command can grab and move them.

 
  VERSION BUILD=6000808     
  TAB T=1     
  TAB CLOSEALLOTHERS     
  URL GOTO=http://www.dhtmlgoodies.com/scripts/drag-drop-folder-tree/drag-drop-folder-tree.html     
  SIZE X=750 Y=600    
  'Replay at lower speed so one can "see" the clicks better  
  SET !REPLAYSPEED MEDIUM
  TAG POS=1 TYPE=A ATTR=TXT:Germany   
  DS CMD=LDOWN X={{!TAGX}} Y={{!TAGY}}  
  WAIT SECONDS=1 
  DS CMD=MOVETO X={{!TAGX}} Y={{!TAGY}}              
  WAIT SECONDS=1
  TAG POS=1 TYPE=A ATTR=TXT:Europe    
  DS CMD=MOVETO X={{!TAGX}} Y={{!TAGY}}  
  DS CMD=LUP  X={{!TAGX}} Y={{!TAGY}}
  '
  WAIT SECONDS=1
  TAG POS=1 TYPE=A ATTR=TXT:United<SP>Kingdom   
  DS CMD=LDOWN X={{!TAGX}} Y={{!TAGY}}  
  WAIT SECONDS=1 
  DS CMD=MOVETO X={{!TAGX}} Y={{!TAGY}}              
  WAIT SECONDS=1
  TAG POS=1 TYPE=A ATTR=TXT:Europe    
  DS CMD=MOVETO X={{!TAGX}} Y={{!TAGY}}  
  DS CMD=LUP  X={{!TAGX}} Y={{!TAGY}}
  WAIT SECONDS=1
  TAG POS=1 TYPE=A ATTR=TXT:America   
  DS CMD=LDOWN X={{!TAGX}} Y={{!TAGY}}  
  WAIT SECONDS=1 
  DS CMD=MOVETO X={{!TAGX}} Y={{!TAGY}}              
  WAIT SECONDS=1
  TAG POS=1 TYPE=A ATTR=TXT:*Root*  
  DS CMD=MOVETO X={{!TAGX}} Y={{!TAGY}}  
  DS CMD=LUP  X={{!TAGX}} Y={{!TAGY}}
Personal tools