WinWaitActive("Database main window title", "sub window title")
Send("^{HOME}")
"C:\Program Files (x86)\Microsoft Works\WksDb" "c:\folder\filename.wdb"
"C:\Program Files (x86)\AutoIt3\AutoIt3.exe" "c:\folder\scroll.au3"
WinWaitActive("Microsoft Excel", "09162015.xls")
WinWaitActive("Microsoft Excel", "")
WinWaitActive("Guest Pocket Cal. 2015-16 - Microsoft Works Database", "")
Send("^{HOME}")
WinWaitActive("Guest Pocket Cal. 2015-16 - Microsoft Works Database", "")
Send ("{PGUP}")
This code does not move the file up at all.
WinWaitActive("Guest Pocket Cal. 2015-16 - Microsoft Works Database", "")
; Wait for 2 seconds
Sleep(2000)
Send ("{PGUP}")
"C:\Program Files (x86)\AutoIt3\AutoIt3.exe" "c:\folder\scroll.au3"
"C:\Program Files (x86)\Microsoft Works\WksDb" "c:\folder\filename.wdb"
"C:\Program Files\AutoIt3\autoIT3.exe" "C:\Program Files\AutoIt3\Scripts\scroll.au3"
"C:\Program Files\Works 2000\WksDb.exe" "V:\My Documents\Tradewinds\Guest Pocket Cal. 2015-16.wdb"
Regardless of which order of code appears in the .bat file, only the first line appears to be executed. If the Works line is on top, the file opens but does not scroll. If the AutoIT3 line is on top, the Works file doesn't open. Either way, only one line appears in the command window.
start "C:\Program Files\AutoIt3\autoIT3.exe" "C:\Program Files\AutoIt3\Scripts\scroll.au3"
start "C:\Program Files\Works 2000\WksDb.exe" "V:\My Documents\Tradewinds\Guest Pocket Cal. 2015-16.wdb"