I was trying to automate the extraction of patient data from a form in a program. The interface is shown on the attached images. I have a list of patient IDs and patient exam dates; For each patient, I have the date of the examination; however, I can't parse both variables (Date of Examination and Patient ID) into the form. Can someone help out? I've attached the code for parsing the date of the exam (I've been adding the patient ID by hand, but there must be a better way).
Thank you!
Patient ID Exam Date
123 01/06/2015
124 12/15/2010
125 06/20/2012
Code: Select all
Date=
(
01/06/2015
12/15/2010
06/20/2012
)
Loop, parse, Date, `n,`r
{
; Go to form
MouseMove, 72, 85
MouseClick, left
; Add 1st exam date
SendRaw, %A_LoopField%
Sleep, 100
; Switch to the 2nd field for date
Send {Tab}
Sleep, 100
Send {Tab}
Sleep, 100
SendRaw, %A_LoopField%
; [b]how can I now add the patient ID corresponding to the first exam date?[/b]