Jump to content

Recommended Posts

Posted

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

ifstatement.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...