Open Side Menu Go to the Top

12-05-2011 , 10:49 PM
hey guys
i want to make a ahk script but have no experience with it so before i spend time learning i just want to know if what i want to do is possible with it.

i want to be able to right click anywhere inside a window and it to maximize. I want it to stay maximized while the mouse is inside that window and then restore to its unmaximzed position when the cursor leaves that window. as a luxury id also like the right click to disable once the window is maximized so if i hit it by accident it wont affect anything

is this possible?

i like to tile my tables but want to try making the table big while i make my actions. would be nice with the new vector hud engines coming out.
Help with ahk script Quote
Help with ahk script
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
Help with ahk script
12-06-2011 , 09:54 AM
Here's a start
Code:
#NoEnv
#SingleInstance, force

GroupAdd, WindowGroup, ahk_class PokerStarsTableFrameClass
; GroupAdd, WindowGroup, ahk_class Notepad
; GroupAdd, WindowGroup, ahk_class CalcFrame
return

;##################################################################################

#IfWinActive, ahk_group WindowGroup
RButton::
	MouseGetPos,,, maxWin
	WinGet, isMaxed, MinMax, ahk_id %maxWin%
	if ( isMaxed != 1 )
	{
		WinMaximize, ahk_id %maxWin%
		SetTimer, MouseLeave, 200
	}
return

;##################################################################################

MouseLeave:
	MouseGetPos,,, currWin
	if ( currWin != maxWin )
	{
		WinRestore, ahk_id %maxWin%
		SetTimer, MouseLeave, Off
	}
return
Help with ahk script Quote
12-06-2011 , 02:43 PM
ah cheers weegs! i just wanted to know if it was possible lol you have gone way further than i had hoped!

can you describe what your script does so far?

cheers

retro
Help with ahk script Quote
12-06-2011 , 02:54 PM
never mind tht last post. i loaded it up and gave it a blast. its excellent!

few problems which i dont suppose you or anybody else could help fix?

when it maximizes the table it seems to make the table slightly bigger than if i click the maximize button, and the table goes off to the left of the screen instead of being centered.

also the right click doesnt work when not over a window. so for instance i cant right click the ahk in the system tray to pause/stop it. so either that needs modifying or there would need to be a key combo to exit/pause the script

BUT - if nobody has the time to look over these small problems ill get my learning cap on and give it a blast.

once again BIG THANKS
Help with ahk script Quote
Help with ahk script
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
Help with ahk script

      
m