kcd-clan Posted May 8, 2005 Share Posted May 8, 2005 $d2loader=0 If WinExists("SwgClient") Then ;norm diablo $d2loader=1 Else If NOT WinExists("SwgClient") Then ;d2loader MsgBox(48, "", "Could not find SwgClient") Exit Endif Endif WinActivate("SwgClient") WinWaitActive("SwgClient") Sleep(2000) I complie it and says Error: "If" statment with no matching "endif" stament Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone() Link to comment Share on other sites More sharing options...
buzz44 Posted May 8, 2005 Share Posted May 8, 2005 (edited) Works fine for me. 3.1.1.24. Could change the code abit to. $d2loader = 0 If WinExists("SwgClient") Then $d2loader = 1 Else MsgBox(48, "", "Could not find SwgClient") Exit EndIf WinActivate("SwgClient") WinWaitActive("SwgClient") Sleep(2000) The If statement inside the other one isn't nessicary because obviously the window is going to be one of 2 things, there or not. What did you use to compile it? Edited May 8, 2005 by Burrup qq Link to comment Share on other sites More sharing options...
kcd-clan Posted May 8, 2005 Author Share Posted May 8, 2005 (edited) nvm i fixed it Edited May 8, 2005 by kcd-clan Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone() Link to comment Share on other sites More sharing options...
buzz44 Posted May 8, 2005 Share Posted May 8, 2005 (edited) I think you should look in the help file for If...ElseIf..Else...EndIf Statments. Edited May 8, 2005 by Burrup qq 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