Code: Select all
;run sas report
#ifWinactive, Sage 50 Accounts Professional - GRP(UK)LTD
Appskey & z::
CoordMode, Mouse, Screen
Click, 92, 237
Sleep, 200
Click, 940, 92
WinWaitActive, Customer invoice reports ;selects report to run
WinMaximize, A
CoordMode, Mouse, Screen
Click, 3694, 230
WinWaitActive, Criteria for SAS Excel Incl Sales Order No. ; enters report criteria
CoordMode, Mouse, Screen
Click, 2872, 592, 2
Sleep, 4000
Send, {enter}
Sleep, 3000
WinWaitActive, tmp ; excel file beginning name of window title that sage software now exports as excel
Sleep, 2000
Click, 755, 455
Sleep, 500
Send, ^{a}
Sleep, 500
Send, ^{a} ; select all in excel
Sleep, 500
Send, ^+l ; puts filter on in excel
Sleep, 500
CoordMode, Mouse, Screen
Click, 104, 235, 2 ; clicks to resize columns
Sleep, 500
CoordMode, Mouse, Screen ; clicks to select which column to drop down filter
Click, 1478, 253
Sleep, 1000
Click 1269, 444
Sleep, 500
Send, bl ; types in filter box to filter on "blanks"
Sleep, 500
Send, {enter}
Sleep, 500
Send, #+{Right} ; want to snap excel report to left screen ** problem is sometimes will open orig on right screen then none of the above works after sending report to excel, its cnrtl a highlight all diff stuff on left screen
Return
#ifWinactive ; do I need this after every script with scripts below. Below or above Return?