xtreempje 0 Posted January 16 Share Posted January 16 (edited) this can be deleted. Edited January 16 by xtreempje Link to post Share on other sites
xtreempje 0 Posted January 16 Author Share Posted January 16 (edited) added the and function but still need help. If GUICtrlRead($Checkbox_1) = $GUI_CHECKED and WinExists($clientA) Then Edited January 16 by xtreempje Link to post Share on other sites
xtreempje 0 Posted January 16 Author Share Posted January 16 (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 by xtreempje Link to post Share on other sites
Danp2 1,360 Posted January 16 Share Posted January 16 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 WebDriver UDF [GH&S] Latest version Wiki FAQs Link to post Share on other sites
ioa747 35 Posted January 16 Share Posted January 16 (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 by ioa747 xtreempje 1 Link to post Share on other sites
xtreempje 0 Posted January 16 Author Share Posted January 16 thanks man that worked thanks! Link to post Share on other sites
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