Jump to content

vynce1982

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

vynce1982's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I am trying to make a simple installer script for my understanding. I would just like to understand how to deal with multiple possible windows. In the case of installing VLC, I might get a window saying VLC is already installed. I have also tried a switch with no luck. I would just like to understand some methods for dealing with the possible existence of unexpected windows. ;INSTALL VLC VIEWER Run(@ScriptDir & '\bin\VLCViewer_2.2.4_3.EXE') AutoItSetOption('MouseCoordMode', 0) sleep(4000) WinWait("VLC Viewer 2.2.4") ; this window will pop up if vlc is already installed If WinExists( "VLC Viewer 2.2.4", "VLC 2.2.4 Already Installed") Then ConsoleWrite ("already installed") WinActivate ('VLC Viewer 2.2.4','Already Installed') MouseClick ('primary', 93, 83, 1, 0) EndIf ; this window will pop up if installer finishes sucessfully If WinExists( "VLC Viewer 2.2.4", "VLC Viewer 2.2.4 Installed") Then ConsoleWrite ("already installed") WinActivate ('VLC Viewer 2.2.4','VlC Installed') MouseClick ('primary', 93, 83, 1, 0) EndIf
  2. 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
×
×
  • Create New...