Icemaan Posted October 22, 2005 Share Posted October 22, 2005 Hello I want write a Script with Autoit which start a Application. For Example there a three possible Windows I call it here a;b;c I have write If WinExist ("a") then run X thats go but i want that autoit check all 3 Possible Windows also If WinExist (a or b or c )then run x when nothing from this exist then run y Can anybody help me Thanks so much and sorry for my bad English So long Icemaan Link to comment Share on other sites More sharing options...
Nuffilein805 Posted October 22, 2005 Share Posted October 22, 2005 HelloI want write a Script with Autoit which start a Application. For Example there a three possible Windows I call it here a;b;cI have write If WinExist ("a") then run X thats go but i want that autoit check all 3 Possible Windows alsoIf WinExist (a or b or c )then run x when nothing from this exist then run yCan anybody help meThanks so much and sorry for my bad EnglishSo long Icemaanthis should do the jobif winexists ("a") or winexists ("b") or winexists("c") then run ("X") else run ("Y") endifhope that helps you my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
Icemaan Posted October 22, 2005 Author Share Posted October 22, 2005 this should do the jobif winexists ("a") or winexists ("b") or winexists("c") then run ("X") else run ("Y") endifhope that helps youMany thanks for your promptly answers.It works nowBe careIcemaan Link to comment Share on other sites More sharing options...
Nuffilein805 Posted October 22, 2005 Share Posted October 22, 2005 np glad i could help you my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
Icemaan Posted October 22, 2005 Author Share Posted October 22, 2005 npglad i could help youOk can i write the following at the end Sleep("500")Winclose ("a") or ("b") or ("c")I want do with this that the window which is open closed after the new window is openIs this so correctIcemaan Link to comment Share on other sites More sharing options...
Icemaan Posted October 22, 2005 Author Share Posted October 22, 2005 Ok can i write the following at the end Sleep("500")Winclose ("a") or ("b") or ("c")I want do with this that the window which is open closed after the new window is openIs this so correctIcemaanI see that this is not correct so following statement comeError: Illegal text at the end of statement (one Statement per line)What i have make not correctIcemaan Link to comment Share on other sites More sharing options...
peter1234 Posted October 22, 2005 Share Posted October 22, 2005 try if winexists ("a") then Winclose ("a") if winexists ("b") then Winclose ("b") if winexists ("c") then Winclose ("c") 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