Could anyone tell me why these winExists statements are always returning zero, when the windows do exist. I think the problem is the "already installed" windows - I can't seem to capture its existence.
#RequireAdmin
;INSTALL VLC VIEWER
Run(@ScriptDir & '\bin\VLCViewer_2.2.4_3.EXE')
AutoItSetOption('MouseCoordMode', 0)
WinWait ('VLC Viewer 2.2.4',"", 20)
If WinExists ('VLC Viewer 2.2.4','VLC 2.2.4 Already Installed')Then
ConsoleWrite ("already installed")
WinActivate ('VLC Viewer 2.2.4','VLC 2.2.4 Already Installed')
MouseClick ('primary', 93, 83, 1, 0)
EndIf
If WinExists ('VLC Viewer 2.2.4','VLC Viewer 2.2.4 Installed')Then
ConsoleWrite ("completed install")
WinActivate ('VLC Viewer 2.2.4','VLC Viewer 2.2.4 Installed')
MouseClick ('primary', 93, 83, 1, 0)
EndIf