Ivan Yordanovitch Petrov
I will start from right to left, move my mouse over the word Petrov, send a copy script, then I want to move the mouse to the word prior "Yordanovitch", and then copy that and repeat the same and move the mouse to Ivan, now, the data always varries, sometimes I get 4 names, sometimes 6 or 2, and the lenght is always different, is there a way to identify the space between the words, and send the mouse maybe 5-6 pixels left of the spacing between words?
Maybe a different solution would be if there is a way to copy the entire phrase, and identify the amount of words there are based on spaces and have them each copy and paste into different coordinates?
Current code, I have hard coded the paste coordinates:
Code: Select all
f1:: ; LAST NAME
MouseClick left
MouseClick left
Send {LControl Down}c{Lcontrol Up}
sleep 100
MouseMove 267,413
MouseClick left
Send {LControl Down}v{Lcontrol Up}
Mousemove, 132,232
return
+2:: ; FIRST NAME double click
MouseClick left
MouseClick left
Send {LControl Down}c{Lcontrol Up}
MouseMove 505,412
MouseClick left
MouseClick left
MouseClick left
Send {LControl Down}v{Lcontrol Up}
Mousemove, 134,239
return
f2:: ; FIRST NAME DRAG
Send {lbutton down} ; holds left click
MouseMove -100,0,10,r ;
Send {lbutton up} ;
Send {LControl Down}c{Lcontrol Up}
sleep 100
MouseMove 505,412
MouseClick left
MouseClick left
MouseClick left
Send {LControl Down}v{Lcontrol Up}
Mousemove, 134,239
return