Jump to content

If Win (Does Not) Exist Question


Recommended Posts

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

Link to comment
Share on other sites

  • Developers

Post split into new topic as that is better than posting in an 14 year old thread.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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