I have gotten as far as generating the report, however when the Export To dialogue appears I am having problems filling in the File Name field. I have tried everything from using a SetFocus> and Send> combination, and have even tried moving the mouse and clicking the filed to activate it. For some reason the file name variable doesn't seem to be going to the File Name field in the window
Here is my code so far:
Code: Select all
//Set IGNORESPACES to 1 to force script interpreter to ignore spaces.
//If using IGNORESPACES quote strings in {" ... "}
//Let>IGNORESPACES=1
//Make Aptus the active application
SetFocus>Aptus*
Wait>1
//Open the Checkin report
Press ALT
Wait>1
Send>rm
Wait>1
Press Right
Wait>1
Send>cc
Wait>1
Press Enter
Wait>1
//Click the Refresh Button to create the report
GetScreenRes>sX,sY
FindImagePos>C:\Users\joe.000\Documents\Macro Scheduler 12\bitmaps\Refresh button.bmp,SCREEN,0,1,X,Y,NumFound
If>NumFound>0
MouseMove>X_0,Y_0
Endif
Wait>1
LClick
Wait>2
//Find and click the Report menu to export email addresses
GetScreenRes>sX,sY
FindImagePos>C:\Users\joe.000\Documents\Macro Scheduler 12\bitmaps\Report button.bmp,SCREEN,0,1,X,Y,NumFound
If>NumFound>0
MouseMove>X_0,Y_0
Endif
Wait>1
GetCursorPos>Xpos,Ypos
Let>Ypos=Ypos+50
MouseMove>Xpos,Ypos
Wait>2
LClick
//Entere file name to save exported email addresses
Wait>5
Year>YearV
Month>MonthV
Day>DayV
Let>FilenameV=checkin_
ConCat>FilenameV,YearV,MonthV,DayV
Let>PathV=c:checkin
SetFocus>Export*
Let>SK_DELAY=10
SendText>PathV
SendText>FilenameV
Press ENTER
Wait>5