Open Side Menu Go to the Top

09-03-2008 , 02:49 AM
Hi all,

There's a similar fragment of a script floating around somewhere on 2P2, but it was very primitive and buried super deep in a thread that I don't even recall.

I've written the following (very simple) script to aid me while multi-tabling on PokerStars.

Essentially the script is one function that takes 4 parameters.

Code:
MoveWindow(LocX, LocY, SizeX, SizeY)
Which moves your current window to (LocX, LocY) with a size of (SizeX, SizeY).

Very simple, but very useful if you prefer stacking.

My personal settings are in the file where I push one button on my mouse to move the table to my "default" stack, and then if I'm faced with some sort of decision I can push another button to move it to my "alternate" stack where I can pay more attention to that particular table.

The script can take unlimited "stacks" so you can build your own system for moving tables around your screen efficiently.

Before you start using the script, be sure to add "f5redrawtable=1" to your pokerstars' user.ini under [options]. When AHK resizes a window, stars doesn't refresh the contents so you'll need to do this and push F5 everytime to continue playing.

Alternatively you could comment out the second to last line and have it refresh for you, but I was experiencing issues with that method.

As always, this is released on an AS-IS basis and I take no responsibility for what you do with it.

Barring the name, this works on FTP as well, but I don't play there (no rakeback =\)

I hope someone gets some use out of this, and if you do let me know! I could update or add features in the future if requested, maybe.

There's probably more robust solutions around but this is what I've been using and I wanted to share.

Any questions feel free to ask.

Enjoy!

-Brad

Code:
; ### StarsStacker Alpha v0.001 ###

; AHK version: v1.0.47.05
; date: August 2008
; author: bhanson @ 2p2 forums

; Be sure to add "f5redrawtable=1" without
; the quotes to your pokerstars user.ini
; under [options] if you want the 
; auto-resize to work properly
; (thanks to Fermion5 @ 2p2 forums)


; ######################
; ### CONFIGURE HERE ###
; ######################


; ### List of hotkeys here ###

; http://www.autohotkey.com/docs/KeyList.htm


; ### Format ###

; KEYNAME::MoveWindow(LocX, LocY, SizeX, SizeY)


; ### Example 1 ###

; WheelDown::MoveWindow(0, 100, 483, 354)

; This would mean everytime you push "WheelDown" it
; would move your current window to (0, 100), with a
; window size of (483, 354)--the stars smallest window
; size


; ### Example 2 ###

; WheelUp::MoveWindow(700, 100, 483, 354)

; Subsequently, this would mean everytime you push 
; "WheelUp" it would move your current window over to
; (700, 100)


; You can get coordinates and window sizes by running
; "AutoIt3 Window Spy" from your AutoHotKey folder






XButton1::MoveWindow(0, 575, 483, 354)
XButton2::MoveWindow(700, 575, 483, 353)























; ### DO NOT EDIT BELOW ###

MoveWindow(LocX, LocY, SizeX, SizeY)
{
	WinGetActiveTitle, TitleVar
	WinMove, %TitleVar%,, LocX, LocY, SizeX, SizeY
	;Send, {F5}
}
StarsStackerAlpha (Table Stacking AHK Script) Quote
StarsStackerAlpha (Table Stacking AHK Script)
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
StarsStackerAlpha (Table Stacking AHK Script)
09-03-2008 , 10:30 AM
Looks nice!

I'm an AHK noob, but I'm looking forward a special feature.
I play with a stack, and three other slots, where I can put tables w/ 3 different Key (Left, Down, Right).
When I press Up, the actived table move back to my stack.
I think it is possible to use just one Key, like Down, to move out the tables of my stacks.
If the first spot is not empty, when I press Down, I'd like the table move in the 2nd spot , etc...
Do you think it is possible to do that?
StarsStackerAlpha (Table Stacking AHK Script) Quote
09-04-2008 , 03:20 AM
I guess Im dumb but I dont get exactly what this does... stars you can just save your table layout stacked so what exactly is this doing?
StarsStackerAlpha (Table Stacking AHK Script) Quote
09-04-2008 , 06:43 AM
Jmflu this table moves your tables in and out of your stack and also resizes them if you want. Say you're playing 16 tables in a stack...standard fold, fold, fold scenario going on, then a table pops up where you're gonna have action on multiple streets or an all in, or anything you want to watch closely. You've set "xbutton1" on your mouse to move that table out of the stack, to the upper right quadrant of your monitor (say your entire stack sits in the upper left quadrant) so you can totally focus on that table while you continue folding through all the 27o hands in your stack. Now if another great hand pops up at the same time you can use "xbutton2" to move that table to your lower left quadrant so you can watch there as well. You can assign any buttons of course, I'm just giving examples. You also have the option to resize the tables along with the move. So say you get a hand and want to move it out of the stack, you can also enlarge the table or make it smaller. When you're done watching the tables you can use "wheel up" to move them back into the stack with the other tables and resize them to the original size if necessary. Extremely useful tool for stackers!

Thanks for posting your script Brad! I've been using Belok's tabling moving script from his thread on 24 tabling like a Pro and it's helped me tremendously. It didn't have the option to resize the tables though so I'm looking really forward to playing with this one. If I've done a bad job explaining anything please feel free to correct me!

Last edited by kara; 09-04-2008 at 07:06 AM.
StarsStackerAlpha (Table Stacking AHK Script) Quote
10-06-2008 , 06:36 PM
Quote:
Originally Posted by Leadan
Looks nice!

I'm an AHK noob, but I'm looking forward a special feature.
I play with a stack, and three other slots, where I can put tables w/ 3 different Key (Left, Down, Right).
When I press Up, the actived table move back to my stack.
I think it is possible to use just one Key, like Down, to move out the tables of my stacks.
If the first spot is not empty, when I press Down, I'd like the table move in the 2nd spot , etc...
Do you think it is possible to do that?
Just do something like this. XButtonn = whatever you are setting as your buttons. someX=the x point where you want your table. someY=the y point where you want your table. Experiment with play money tables to get the values exactly right. Just in case you're not clear x = how far across your screen the lefthand corner of the window is, and y = how far down. The last two figures are the size of the table. I don't know how big this actually is, so you may have to fiddle with it. You can easily edit a script by pointing at it in your system tray, rightclicking and choosing "Edit script".

XButton1::MoveWindow(0, 575, 483, 354)
XButton2::MoveWindow(700, 575, 483, 353)
XButton3::MoveWindow(someX, someY, 483, 354)
XButton4::MoveWindow(someX, someY, 483, 353)
StarsStackerAlpha (Table Stacking AHK Script) Quote
10-06-2008 , 08:48 PM
Total noob here, is there an easy way to figure out the current size of the tables I am using?
StarsStackerAlpha (Table Stacking AHK Script) Quote
10-06-2008 , 09:24 PM
Quote:
Originally Posted by Michael Davis
Total noob here, is there an easy way to figure out the current size of the tables I am using?
heh, this is one of the utilities I intended to point you towards - glad you found it already

Yes, easy way to find out:

Run the script.
Right click on it's green "H" icon in the system tray, choose "Window Spy"
Click a table with the mouse, much info will appear in the "Window Spy", including position, width and height.
StarsStackerAlpha (Table Stacking AHK Script) Quote
10-06-2008 , 11:16 PM
Is there anyway to fix the problem of having to hit f5 to refresh the table? I tried removing the line but can not get it to work.

Thanks.
StarsStackerAlpha (Table Stacking AHK Script) Quote
10-07-2008 , 07:44 AM
Bump
StarsStackerAlpha (Table Stacking AHK Script) Quote
10-07-2008 , 07:58 AM
Quote:
Originally Posted by mv540
Is there anyway to fix the problem of having to hit f5 to refresh the table? I tried removing the line but can not get it to work.

Thanks.
Did you add "f5redrawtable=1" to your pokerstars' user.ini under [options]?

Very helpful script, btw.
StarsStackerAlpha (Table Stacking AHK Script) Quote
10-07-2008 , 10:47 AM
yea i did, but you still need to hit f5. Dave is going to post a fix, hopefully later today, so the script does this on its own.
StarsStackerAlpha (Table Stacking AHK Script) Quote
10-08-2008 , 03:51 PM
bump
StarsStackerAlpha (Table Stacking AHK Script) Quote
10-08-2008 , 09:19 PM
I don't have to hit F5. The table moves location, resizes and redraws and I'm able to play without hitting F5. Do you have the very bottom part of the code in your script:

MoveWindow(LocX, LocY, SizeX, SizeY)
{
WinGetActiveTitle, TitleVar
WinMove, %TitleVar%,, LocX, LocY, SizeX, SizeY
;Send, {F5}
}
StarsStackerAlpha (Table Stacking AHK Script) Quote
10-08-2008 , 11:06 PM
Quote:
Originally Posted by kara
I don't have to hit F5. The table moves location, resizes and redraws and I'm able to play without hitting F5. Do you have the very bottom part of the code in your script:

MoveWindow(LocX, LocY, SizeX, SizeY)
{
WinGetActiveTitle, TitleVar
WinMove, %TitleVar%,, LocX, LocY, SizeX, SizeY
;Send, {F5}
}
yea, that is exactly how I have it. I still need to hit f5 every time I move a table in or out of the stack.
StarsStackerAlpha (Table Stacking AHK Script) Quote
10-09-2008 , 08:54 AM
Oh weird. I wonder why mine works without having to hit F5. I didn't expect it to based on the OP. Have you tried PlaceMint?
StarsStackerAlpha (Table Stacking AHK Script) Quote
10-09-2008 , 01:58 PM
Quote:
Originally Posted by kara
Oh weird. I wonder why mine works without having to hit F5. I didn't expect it to based on the OP. Have you tried PlaceMint?
No, I have not, but I will look into it, I am looking to have my table stack on one side of the screen and two slots on the other to move important tables in and out of, hopefully I can set PlaceMint up to do it. Thanks for the help.
StarsStackerAlpha (Table Stacking AHK Script) Quote
10-09-2008 , 10:23 PM
PlaceMint is awesome. I think you'll really like it for what you're looking for.
StarsStackerAlpha (Table Stacking AHK Script) Quote
10-15-2008 , 06:24 AM
;Send, {F5}


Removing the ; from the command at the bottom of the script works....

also to edit the user.ini file requires pokerstars to be closed.
StarsStackerAlpha (Table Stacking AHK Script) Quote
10-15-2008 , 07:49 AM
Quote:
Originally Posted by nulli
;Send, {F5}


Removing the ; from the command at the bottom of the script works....
Ahhhhhhh that's what I did....remove the ; Thanks for posting that!
StarsStackerAlpha (Table Stacking AHK Script) Quote
11-09-2008 , 07:50 AM
I made a rewrite of this script to suit my needs. This edited version uses two stacks of tables, an left and right one, and moves every newly stacked table by a set number of pixels to the under right of the previous one in the same stack, then starts from the beginning again when the screen becomes full. So it becomes a sort of combination of stacking and cascading I guess. What I usually do, is to have Stars start every new table at the bottom left of my screen, then move them to the left stack while the blinds are low, and the right stack at the bubble (I used this 24-tabling DoN SnGs). Anyway, here goes:

Code:
; ### StarsStacker Alpha v0.001 ###

; AHK version: v1.0.47.05
; date: August 2008
; author: bhanson @ 2p2 forums
; edited by: p3rc4@2p2

; Be sure to add "f5redrawtable=1" without
; the quotes to your pokerstars user.ini
; under [options] if you want the 
; auto-resize to work properly
; (thanks to Fermion5 @ 2p2 forums)

; Resolution configuration, change these settings appropriately
; This is for 1280x1024
ResX := 1280
ResY := 1024

; Spacing configuration, the horizontal space in pixels between windows in a stack
SpcPix := 20

; Replace WheelUp and WheelDown with other hotkeys if you like
; Here's a list of hotkeys:
; http://www.autohotkey.com/docs/KeyList.htm

LeftN := 0
RightN := 0

WheelUp::MoveLeft(LeftN, SpcPix, ResX, ResY)
WheelDown::MoveRight(RightN, SpcPix, ResX, ResY)

MoveLeft(ByRef LeftN, SpcPix, ResX, ResY)
{
	MoveWindow(64 + (LeftN * SpcPix), 64 + (LeftN * SpcPix), 483, 354)
	LeftN := LeftN + 1
	if (LeftN * SpcPix > ResX - 64 - 483)
		LeftN := 0
	if (LeftN * SpcPix > ResY - 64 - 354)
		LeftN := 0
}

MoveRight(ByRef RightN, SpcPix, ResX, ResY)
{
	MoveWindow(704 + (RightN * SpcPix), 64 + (RightN * SpcPix), 483, 354)
	RightN := RightN + 1
	if (RightN * SpcPix > ResX - 64 - 483)
		RightN := 0
	if (RightN * SpcPix > ResY - 64 - 354)
		RightN := 0
}


MoveWindow(LocX, LocY, SizeX, SizeY)
{
	WinGetActiveTitle, TitleVar
	WinMove, %TitleVar%,, LocX, LocY, SizeX, SizeY
	Send, {F5}
}

Last edited by p3rc4; 11-09-2008 at 08:11 AM.
StarsStackerAlpha (Table Stacking AHK Script) Quote
11-09-2008 , 09:06 AM
Fixed some bugs in the previous edition. Sorry for the threadjack

Code:
; ### StarsStacker Alpha v0.001-p3rc4-v2 ###

; AHK version: v1.0.47.05
; date: August 2008
; author: bhanson @ 2p2 forums
; edited by: p3rc4@2p2

; Be sure to add "f5redrawtable=1" without
; the quotes to your pokerstars user.ini
; under [options] if you want the 
; auto-resize to work properly
; (thanks to Fermion5 @ 2p2 forums)

; Resolution configuration, change these settings appropriately
; This is for 1280x1024
ResX := 1280
ResY := 1024

; Spacing configuration, the horizontal space in pixels 

between windows in a stack
SpcPix := 20
; Replace WheelUp and WheelDown 1:58 PM 11/09/2008with 

other hotkeys if you like
; Here's a list of hotkeys:
; http://www.autohotkey.com/docs/KeyList.htm

LeftN := 0
RightN := 0

WheelUp::MoveLeft(LeftN, SpcPix, ResX, ResY)
WheelDown::MoveRight(RightN, SpcPix, ResX, ResY)

MoveLeft(ByRef LeftN, SpcPix, ResX, ResY)
{
	MoveWindow((LeftN * SpcPix), (LeftN * SpcPix), 483, 354)
	LeftN := LeftN + 1
	if (LeftN * SpcPix > ResY - 32 - 354)
		LeftN := 0
}

MoveRight(ByRef RightN, SpcPix, ResX, ResY)
{
	MoveWindow((ResX / 2) + (RightN * SpcPix) - 128, (RightN * SpcPix), 483, 354)
	RightN := RightN + 1
	if ((ResX / 2) + (RightN * SpcPix) - 128 > ResX - 483)
		RightN := 0
}


MoveWindow(LocX, LocY, SizeX, SizeY)
{
	WinGetActiveTitle, TitleVar
	WinMove, %TitleVar%,, LocX, LocY, SizeX, SizeY
	Send, {F5}
}
StarsStackerAlpha (Table Stacking AHK Script) Quote
11-10-2008 , 02:00 AM
interesting script, thanks ^^
StarsStackerAlpha (Table Stacking AHK Script) Quote
11-10-2008 , 02:32 PM
looks nice - gonna give it a try
StarsStackerAlpha (Table Stacking AHK Script) Quote
11-11-2008 , 06:44 PM
Here's my little take on this script. I play SNGS on a 1600x1200 monitor. I play with PokerStars tables at the default size, stacking my tables in the upper left hand corner. If I want to pull a table out I push the "Back" (XButton1) button on my mouse and it will move the table to one of the 3 slots, (Top Right, Bot Right, Bot Left). If you push the "Forward" (XButton2) button on my mouse it moves the table back into the main stack. It's not very complicated and should be very straight forward.

Code:
#NoEnv

NumberOut := 0

XButton1::MoveOut()
XButton2::MoveIn()

MoveOut()
{
	global NumberOut
		
	if NumberOut = 0
	{
		MoveWindow(800, 0, 800, 580, 1)
		
		NumberOut += 1
	}
	else	if NumberOut = 1
	{
		MoveWindow(0, 580, 800, 580, 1)
		NumberOut += 1
	}
	else	if NumberOut = 2
	{
		MoveWindow(800, 580, 800, 580, 1)
		NumberOut = 0
	}
}

MoveIn()
{	
	MoveWindow(0,0, 800, 580, 0)
	NumberOut = 0
}

MoveWindow(LocX, LocY, SizeX, SizeY, Out)
{
	WinGetActiveTitle, TitleVar
	IfInString, TitleVar, Tournament
	{
		WinMove, %TitleVar%,, LocX, LocY, SizeX, SizeY
		Send, {F5}
	}
}
StarsStackerAlpha (Table Stacking AHK Script) Quote
12-04-2008 , 11:04 PM
I used this back in September and it worked fine. I haven't changed my user.ini or anything and now it won't redraw the table. Any ideas why?
StarsStackerAlpha (Table Stacking AHK Script) Quote
StarsStackerAlpha (Table Stacking AHK Script)
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
StarsStackerAlpha (Table Stacking AHK Script)

      
m