Leprechaun Posted June 18, 2005 Share Posted June 18, 2005 I've made a bot thats working really well now thanks to this boards help now theres a final problem. Through some lag every once in awhile I'll get booted because a mouse click lags and clicks a button that brings up a browser window which automatically minimizes my game screen. What I'd like to do is.. -Once the window is minimized I'd like to have it restored back to Full Screen. I've tried many codes when looking at the AutoIt help file but none worked. So i've come here =) Link to comment Share on other sites More sharing options...
t0ddie Posted June 18, 2005 Share Posted June 18, 2005 (edited) if winnotactive("your window") then winsetstate("your window",@sw_restore) endif put that in your main loop Edited June 18, 2005 by t0ddie Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
Leprechaun Posted June 18, 2005 Author Share Posted June 18, 2005 That dosnt work. Says "winnotactive" isnt a valid function. If WinExists("MapleStory") Then WinSetState("MapleStory", "",@sw_restore) Endif I put that on one line but it says "Illegal text at the end of statement (one statement per line) when I move the Endif to the next line it says that the If is missing and Endif. Link to comment Share on other sites More sharing options...
HardCopy Posted June 19, 2005 Share Posted June 19, 2005 That dosnt work. Says "winnotactive" isnt a valid function. If WinExists("MapleStory") Then WinSetState("MapleStory", "",@sw_restore) Endif I put that on one line but it says "Illegal text at the end of statement (one statement per line) when I move the Endif to the next line it says that the If is missing and Endif.<{POST_SNAPBACK}>True syntax isIf WinExists("MapleStory") Then WinSetState("MapleStory", "",@sw_restore)Endif HardCopy Contributions: UDF _DateYearFirstChildren are like Farts, you can just about stand your own.Why am I not a Vegetarian?...Well...my ancestors didn't fight & evolve to the Top of the food chain for me to survive on Salad Link to comment Share on other sites More sharing options...
buzz44 Posted June 19, 2005 Share Posted June 19, 2005 (edited) Doesn't he want it when its minimized instead of if it exists? If WinGetState("MapleStory") = 16 Then WinSetState("MapleStory", "", @SW_MAXIMIZE) EndIf Edited June 19, 2005 by Burrup qq Link to comment Share on other sites More sharing options...
t0ddie Posted June 19, 2005 Share Posted June 19, 2005 (edited) Doesn't he want it when its minimized instead of if it exists?If WinGetState("MapleStory") = 16 Then WinSetState("MapleStory", "", @SW_MAXIMIZE) EndIf<{POST_SNAPBACK}>i had maximize before, but i figured restore would be better because the game is full screen already, so i edited it to restore Edited June 19, 2005 by t0ddie Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. 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