Sign in to follow this  
Followers 0
Leprechaun

Keep a Window Up.

6 posts in this topic

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 =)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

if winnotactive("your window") then

winsetstate("your window",@sw_restore)

endif

put that in your main loop

Edited by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 is

If 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

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by Burrup

[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0