When running a script, is there a way to have ahk save multiple separate values then paste those same values later when the script calls for them?
For example, suppose you have a website which stores membership records and each record includes four fields:
- First Name
- Last Name
- DOB
- Phone Number
Is there a way, using ahk, to do essentially what is shown in the following script (assuming you have already selected the first cell [Col A, First Name] in Excel for a given member) and, in Chrome, you have the cursor placed in the first field (ie First Name)?
Code: Select all
F1::
SetTitleMatchMode, 2
Loop, 10
{
WinActivate, Excel
Send ^c ; copy Col A value and save as m1
Send {Tab}
Send ^c ; copy Col B value and save as m2
Send {Tab}
Send ^c ; copy Col C value and save as m3
Send {Tab}
Send ^c ; copy Col D value and save as m4
Send {Tab}
Send {Down}
Send {Home} ; ready for next row
WinActivate, Chrome
Send [saved value m1]
Send {Tab}
Send [saved value m2]
Send {Tab}
Send [saved value m3]
Send {Tab}
Send [saved value m4]
Send {Tab}
Send {Enter} ; saves info and opens new record form
}
Return
Thanks