This is a script we use to copy and paste information from a form to another notepad (within the same program which is why it I use the script because that is dumb).
It is based on the window resolution, and we got the coordinates with windowspy which comes with AutoHotkey. I have cut it down a bit, but hope it gives you a good idea of how to do yours:
Code: Select all
;Autofill Template
!Enter::
MouseClick, left, 507, 547
sleep 250
MouseClick, left, 690, 600
SendInput, Client Email: +{enter}
SendInput, Client Name: +{enter}
SendInput, Client Phone: +{enter}
MouseClick, left, 502, 168
SendInput, ^a
SendInput, ^c
MouseClick, left, 690, 600
SendInput, ^v
MouseClick, left, 509, 190, 2
SendInput, ^c
MouseClick, left, 690, 614
SendInput, ^v{Space}
MouseClick, left, 509, 216, 2
SendInput, ^c
MouseClick, left, 690, 614
SendInput, ^v
return
make sure your AHK is running as admin if it is not working