Jump to content

Keep a Window Up.


Recommended Posts

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

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.

Link to comment
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.

Link to comment
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

Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...