I want to share a simple technique that I developed so we can click on a text, wait for a text to load etc.
With chrome open on the site that you want:
Code: Select all
send, ^f ;this will open the the find dialog
send, the word or phrase that you want to search ;this will fill the find dialog and wil highlight the found word
send, ^{Enter} ; this will click the highlighted word
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;How to click in a text only when it is loaded:
loop
{
sleep 1000 ; add some sleep so the browser don't go crazy
send, ^f ;this will open the the find dialog
text := the word or phrase
send, %text% ;this will fill the find dialog and wil highlight or not the found word
send, {ESC} ;if the word is not found, nothing happens, if word found it will be highlighted
send, ^c
if (clipboard = text){
send, {Enter} ; this will click the text when found, when not in dialog you want to press enter, not control enter so you open the link in the same tab
break ;this will stop the loop when the text is found
}
}