vynce1982 Posted October 25, 2018 Share Posted October 25, 2018 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 Link to comment Share on other sites More sharing options...
Somerset Posted October 25, 2018 Share Posted October 25, 2018 (edited) This thread is over a decade old . Reported. Edited October 25, 2018 by Somerset Link to comment Share on other sites More sharing options...
Developers Jos Posted October 26, 2018 Developers Share Posted October 26, 2018 Post split into new topic as that is better than posting in an 14 year old thread. Jos FrancescoDiMuro 1 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 More sharing options...
FrancescoDiMuro Posted October 26, 2018 Share Posted October 26, 2018 @vynce1982 You could use WinList() function to retrieve all the Windows opened and, if you match the Window which has that title, then you can grab the handle of the Window and use it to do whatever you want vynce1982 1 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now