xtreempje Posted January 16, 2023 Share Posted January 16, 2023 (edited) this can be deleted. Edited January 16, 2023 by xtreempje Link to comment Share on other sites More sharing options...
xtreempje Posted January 16, 2023 Author Share Posted January 16, 2023 (edited) added the and function but still need help. If GUICtrlRead($Checkbox_1) = $GUI_CHECKED and WinExists($clientA) Then Edited January 16, 2023 by xtreempje Link to comment Share on other sites More sharing options...
xtreempje Posted January 16, 2023 Author Share Posted January 16, 2023 (edited) Mhmm I still need help, If it Excist or doesnt excist it still keep opening inf. clients. If GUICtrlRead($Checkbox_1) = $GUI_CHECKED and WinExists($clientA) Then MsgBox("Title", "The client is already open.", 10) Else MsgBox("Title", "Does not excist starting up now.", 10) ShellExecute($client1) Sleep(12500) EndIf Hope someone can help me out. Edited January 16, 2023 by xtreempje Link to comment Share on other sites More sharing options...
Danp2 Posted January 16, 2023 Share Posted January 16, 2023 You probably need to revert to something closer to your original code --- ;; check if all clients are running ;; If GUICtrlRead($Checkbox_1) = $GUI_CHECKED Then If Not WinExists($clientA) Then ;; if window isn't found. ShellExecute($client1) Endif Sleep(12500) Endif Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
ioa747 Posted January 16, 2023 Share Posted January 16, 2023 (edited) something like this ? If WinExists($clientA) Then MsgBox("Title", "The client is already open.", 10) Else MsgBox("Title", "Does not excist starting up now.", 10) ShellExecute($client1) WinWait($client1) EndIf If GUICtrlRead($Checkbox_1) = $GUI_CHECKED Then EndIf Edited January 16, 2023 by ioa747 xtreempje 1 I know that I know nothing Link to comment Share on other sites More sharing options...
xtreempje Posted January 16, 2023 Author Share Posted January 16, 2023 thanks man that worked thanks! 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