Here is my function to wait for a window to appear with a timeout of 3 seconds. If the timeout elapses, an error message is displayed.
WaitForWindow( title, message )
{
WinWaitActive, %title%, ,3
if ErrorLevel
{
MsgBox %message%
return false
}
return true
}
It works for all other windows, except LogExpert
The part of the script that uses it is:
Run, c:\\tools\\logexpert\\logexpert.exe %MyLogFile%, max
WaitForWindow( %MyLogFile%, "No logExpert Window")
It doesn't matter what %MyLogFile% contains. It does not recognize the window.
This, on the other hand, works:
^!o::
Send ^o
if not WaitForWindow( "Open File", "No Open File Window appeared" )
{
return
}
MsgBox "Worked"
Has anybody had this problem with Autohotkey and LogExpert? Is there a workaround?