Here it is:
Code: Select all
#z::
WinActivate, ahk_class EudoraMainWindow
Send {Alt Down}tP{Alt Up} ; Alt-T, P Personalities Window
Sleep 5
Send {End} ; google account is at bottom of list
Sleep 5
Send {Alt Down}{Enter}{Alt Up} ; properties
WinWait Account
WinActivate
Send {Ctrl Down}{Tab}{Ctrl Up} ; Incoming Tab
Sleep 10
Send {Alt Down}n{Alt Up} ; Alt-N Last SSL
Sleep 10
Send {Alt Down}c{Alt UP} ; ALT-C Certificate Mgr
Sleep 10
Send {Right} ; expand certificate tree
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 50
Send {Alt Down}a{Alt Up} ; ALT-A Add to trusted
Sleep 30
Send {Alt Down}o{Alt Up} ; ALT-O Done
Sleep 20
Send {Enter} ; OK to SSL dialog
Sleep 20
Send {Ctrl Down}{Tab}{Ctrl Up} ; Generic Properties Tab
Sleep 10
Send !l ; Alt-L Last SSL
Sleep 10
Send !c ; ALT-C Certificate Mgr
Sleep 10
Send {Right} ; expand certificate tree
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 10
Send {Right}
Sleep 50
Send {Alt Down}a{Alt Up} ; ALT-A Add to trusted
Sleep 30
Send {Alt Down}o{Alt Up} ; ALT-O Done
Sleep 20
Send {Enter} ; OK to SSL dialog
Sleep 20
Send {Tab}{Enter} ; OK to Properties dialog
Sleep 20
WinActivate Eudora
Sleep 20
Send {Alt Down}T{Alt Up}M ; back to mailboxes
Sleep 20
WinActivate Eudora
Return
I can verify that the script runs, by putting SplashTextOn rhroughout. It executes past WinActivate, ahk_class EudoraMainWindow, but Eudora is not activated.
The Send commands don't send anything. Running the script leaves AHK in a non-working state until I reload the script.
I updated to the most recent version of AHK, but it doesn't make any difference in the problem.
Other short scripts like
Code: Select all
#!d:: Send %A_YYYY%-%A_MM%-%A_DD%
How can I debug the issues with this script?
I'm running Windows 10 64 bit version 1709.
Autohotkey 1.1.28.00 64 bit.