Open Side Menu Go to the Top
Register
New Script: TableOpener for PokerStars New Script: TableOpener for PokerStars

11-09-2009 , 01:15 AM
Thois TableOpener for PokerStars
Opens new cash game tables from the lobby every x seconds (if there are less tables opened than your predefined setting). It starts with the top table of of the lobby (so it respects you table sorting order) and then goes all the way down the list dependable on how many tables are needed. Your mouse cursor is not affected (simulated clicks thanks to Yuk's PostLeftClick function), so no annoyances. A great tool for multi-tablers.

Customizable variables:
- Number of tables to keep open, default = 18
- Text size of the lobby, default = medium
- How often the script should do a recheck (and open new tables if needed), default = 10 seconds

Hotkeys (disabled, remove the ';' marks to re-enable):
These work great, To me, they are essential. I disabled them because they aren't really a part of the script's main goal and they might interfere with other hotkeys in other scripts that you have in use.
- Bottom thumb mouse button: Endlessly cycle between all tables in the table stack the cursor is pointing at (moves the front table to the back).
- Top thumb mouse button: Closes the table the mouse is pointing at (also clicks the OK warning button).

Pausing the script:
Sometimes you want to temporarily stop the script from opening new tables, in the future I will add a GUI with a button that does this (pause button). In the meantime you will have to right-click the script's icon in your taskbar and press 'Pause script'.

Opening tables that are already opened:
Sometimes it takes a while for the script to finally reach your table goal, because it might try to open tables that are already open (for example: when the lobby's sorting order suddenly changes while opening tables). I will try to come up with a solution for this, maybe you have an idea.

Extra information:
I have beta-tested the script, and evaluated it as strong enough for release, I like it. I would like to hear about your experiences with this script. I might add some extra features in the future, if you think you can improve the script, please do so. 'Thois' on PS for donations



Code:
; Thois TableOpener for PokerStars v0.90
; Opens new cash game tables from the lobby every x seconds (if there are less tables opened than your predefined settings). A great tool for multi-tablers.
; Customize the variables below (between the lines)
; 'Thois' on PS for donations

; Customizable variables (between the lines)
;------------------------------------------
numberoftablestokeepopen := 18 ;How many tables do you want to play?
rowheight := 13 ;In the PokerStars lobby go to View > Text Size: For Medium & smaller:13, For smallest:12, For Larger:15, For Largest:17
recheck := 50 ;How often the script should open up new tables (if needed), 50=10seconds, 25=5seconds etc... Try not to set this too low for CPU performance issues
;------------------------------------------

numberofloopinstances := recheck - 1

Loop
{
SendMessage, 0x115, 0, 0, PokerStarsListClass1, PokerStars Lobby
numberofloopinstances := numberofloopinstances + 1
if (numberofloopinstances = recheck)
	{
	numberofloopinstances := 0
	WinGet, numberofwindows, Count, ahk_class PokerStarsTableFrameClass,,Lobby
	beffen := numberoftablestokeepopen - numberofwindows
	if (beffen > 0)
		{
		Loop, %beffen%
			{
			ControlGet, tablesinthelobby, Hwnd, , PokerStarsListClass1, PokerStars Lobby
			yclick := 1 + (rowheight * A_Index) - rowheight
			PostLeftClick(1, yclick, tablesinthelobby)
			ControlClick, PokerStarsButtonClass10, PokerStars Lobby
			Sleep, 500
			}
		}
	}
Sleep, 200
}

; Hotkeys (disabled)

;~Xbutton1:: ;Endlessly cycles between all tables in the stack the cursor is pointing at (brings the front table to the back), disabled (remove ; marks to enable)
;MouseGetPos,,,tableID
;WinGetClass, classoftableid, ahk_id %tableID%
;if (classoftableid = "PokerStarsTableFrameClass")
;	{
;	WinSet, Bottom,, ahk_id %tableID%
;	}
;return

;~Xbutton2:: ;Closes the table the mouse is pointing at (also clicks the OK warning button), disabled (remove ; marks to enable)
;MouseGetPos,,,tableID
;WinGetClass, classoftableid, ahk_id %tableID%
;if (classoftableid = "PokerStarsTableFrameClass");
;	{
;	WinClose, ahk_id %tableID%
;	Sleep,20
;	ControlClick, Button1, Table, OK
;	}
;return

;Juks rocks - I deactivated WinActivate so that the Lobby doesnt steal focus
PostLeftClick(x, y, table_id, activate=1) {
; ### JUK: Send the down left click, then the mouse-up messages.
; NOTE: This is relative to the top left of the client area and NOT the top left of the
;       window (ie: It *doesn't* include the title-bar like AHK's MouseClick does!!!).
If activate
; WinActivate, ahk_id%table_id%
PostMessage, 0x201, 0x0001, ((y<<16)^x), , ahk_id%table_id%
PostMessage, 0x202 , 0, ((y<<16)^x), , ahk_id%table_id%
}

Last edited by Thois; 11-09-2009 at 01:34 AM.
New Script: TableOpener for PokerStars Quote
11-09-2009 , 02:23 PM
New version (v1.05)!!!:



Changes:
- Added a GUI (quickly change number of tables you want to keep open and added an enable/disable checkbox).
- Created a fix for the opening tables that are already opened problem, now the script will keep opening tables until the number of tables opened matches the number of tables you specified.

Extra information:
- Script was only tested on the PokerStars black lobby theme, I guess it should work on the red one too, but I'm not sure.
- To clarify things: This script is for cash game players only, it does not work on tourneys!
- Don't forget: Even though the script now has a GUI, you possibly still need to change 1 variable within the code (between the lines at the top).
- The script doesn't work when the PokerStars lobby is minimized. It doesn't need to be visible though.

'Thois' on PS for donations Let me know if you need any help, or if you have extra suggestions, bugs etc...

Code:
; Thois TableOpener for PokerStars v1.05
; Opens new cash game tables from the lobby every x seconds (if there are less tables opened than your predefined settings). A great tool for multi-tablers.
; Customize the variables below (between the lines)
; 'Thois' on PS for donations

; Customizable variables (between the lines)
;------------------------------------------
rowheight := 13 ;In the PokerStars lobby go to View > Text Size: For Medium & smaller:13, For smallest:12, For Larger:15, For Largest:17
recheck := 50 ;How often the script should open up new tables (if needed), 50=10seconds, 25=5seconds etc... Try not to set this too low for CPU performance issues
;------------------------------------------

Gui, Font, s8, Arial
Gui, Add, Text,, Number Of Tables:
Gui, Add, Edit
Gui, Add, UpDown, vnumberoftablestokeepopen Range1-24, 12
Gui, Add, Checkbox, venabledisable, Run!
Gui, Show,, Thois TableOpener for PokerStars v1.00
Gui, Submit, NoHide

numberofloopinstances := recheck - 1

Loop
{
Gui, Submit, NoHide
SendMessage, 0x115, 0, 0, PokerStarsListClass1, PokerStars Lobby
numberofloopinstances := numberofloopinstances + 1
if (numberofloopinstances = recheck)
	{
	numberofloopinstances := 0
	WinGet, numberofwindows, Count, ahk_class PokerStarsTableFrameClass,,Lobby
	beffen := numberoftablestokeepopen - numberofwindows
	if (beffen > 0 AND enabledisable = 1)
		{
		Loop
			{
			ControlGet, tablesinthelobby, Hwnd, , PokerStarsListClass1, PokerStars Lobby
			yclick := 1 + (rowheight * A_Index) - rowheight
			PostLeftClick(1, yclick, tablesinthelobby)
			ControlClick, PokerStarsButtonClass10, PokerStars Lobby
			Sleep, 500
			WinGet, numberofwindows, Count, ahk_class PokerStarsTableFrameClass,,Lobby
			beffen := numberoftablestokeepopen - numberofwindows
			if (beffen = 0)
				{
				break
				}
			}
		}
	}
Sleep, 200
}

; Hotkeys (disabled)

;~Xbutton1:: ;Endlessly cycles between all tables in the stack the cursor is pointing at (brings the front table to the back), disabled (remove ; marks to enable)
;MouseGetPos,,,tableID
;WinGetClass, classoftableid, ahk_id %tableID%
;if (classoftableid = "PokerStarsTableFrameClass")
;	{
;	WinSet, Bottom,, ahk_id %tableID%
;	}
;return

;~Xbutton2:: ;Closes the table the mouse is pointing at (also clicks the OK warning button), disabled (remove ; marks to enable)
;MouseGetPos,,,tableID
;WinGetClass, classoftableid, ahk_id %tableID%
;if (classoftableid = "PokerStarsTableFrameClass");
;	{
;	WinClose, ahk_id %tableID%
;	Sleep,20
;	ControlClick, Button1, Table, OK
;	}
;return

;Juks rocks - I deactivated WinActivate so that the Lobby doesnt steal focus
PostLeftClick(x, y, table_id, activate=1) {
; ### JUK: Send the down left click, then the mouse-up messages.
; NOTE: This is relative to the top left of the client area and NOT the top left of the
;       window (ie: It *doesn't* include the title-bar like AHK's MouseClick does!!!).
If activate
; WinActivate, ahk_id%table_id%
PostMessage, 0x201, 0x0001, ((y<<16)^x), , ahk_id%table_id%
PostMessage, 0x202 , 0, ((y<<16)^x), , ahk_id%table_id%
}

GuiClose:
ExitApp

Last edited by Thois; 11-09-2009 at 02:35 PM.
New Script: TableOpener for PokerStars Quote
11-09-2009 , 03:06 PM
I'm currently working on a new version, which moves new tables to a predefinable position on your desktop for easy sitting in/closing the table. Once you have joined the table it moves the table back to its original position according to your PokerStars Table Layouts settings. If you have any other ideas, let me know.
New Script: TableOpener for PokerStars Quote
11-10-2009 , 10:24 AM
Hey Thois, this looks promising. Would be nice to be able to specify some parameters for table selection like min/max number of players seated + table VPIP. Also would it be possible to have it auto-seat you and auto-buyin at tables with free seats and auto-add you to the waiting list on full tables that match your filters?
New Script: TableOpener for PokerStars Quote
11-10-2009 , 12:37 PM
Quote:
Originally Posted by digit
Hey Thois, this looks promising. Would be nice to be able to specify some parameters for table selection like min/max number of players seated + table VPIP. Also would it be possible to have it auto-seat you and auto-buyin at tables with free seats and auto-add you to the waiting list on full tables that match your filters?
Yes I have these features planned. Im not quite sure if I have the skills to do this, but I will try for sure.
New Script: TableOpener for PokerStars Quote
11-15-2009 , 09:39 PM
So today I have started on v2.00, I'm having great results already. V1.00 really sucked, it kept opening tables that were already opened, the lobby kind of stole focus, it didn't auto sit-in/buy-in and it had no advanced filters. This time i'll make sure it's perfect before I release v2.00...


Last edited by Thois; 11-15-2009 at 09:47 PM.
New Script: TableOpener for PokerStars Quote
11-16-2009 , 04:18 PM
totally what i need - especially version 2.0 - cant wait for it..
i looked up in the search function for a script like this, for cash games on stars, but there was a thread that said it wasnt allowed on stars - is that true ?
btw: hi guys
New Script: TableOpener for PokerStars Quote
11-16-2009 , 07:21 PM
Hey thois, the interface for V2 looks like it will have some good features.

I'm not sure if this goes against stars TOS? I think the problem they would have with it is if it were used for datamining? Can anyone shed a bit more light on that?
New Script: TableOpener for PokerStars Quote
11-16-2009 , 08:13 PM
Props to you my friend!

This... is... awesomeness!
New Script: TableOpener for PokerStars Quote
11-16-2009 , 11:32 PM
well if its against their TOS i will keep the script to myself lol

btw need a few more days to make the script perfect, but it will be awesome...
New Script: TableOpener for PokerStars Quote
11-18-2009 , 12:37 AM
Added 1 extra filter (Min Avg Stack size of the 2 shortest stacks on the table), this is for the people who hate to sit with 2 short stackers at 1 table (sometimes the avg stack filter didnt filter those tables out when the other stacks were >100bb so it needed this extra option).

Im especially the most proud of the code that reads table information from the lobby.

+ Added 1 extra advanced option (not interesting)



Need 1 more week to complete the script. Does anyone know if this script is against PokerStars' TOS?
New Script: TableOpener for PokerStars Quote
12-07-2009 , 07:06 AM
Just came across this thread. Any news on v2?
New Script: TableOpener for PokerStars Quote
12-07-2009 , 09:41 AM
Quote:
Originally Posted by fievel
Just came across this thread. Any news on v2?
I will try to finish this after development of my other project slows down
New Script: TableOpener for PokerStars Quote
12-08-2009 , 08:07 PM
Quote:
Originally Posted by Thois
Added 1 extra filter (Min Avg Stack size of the 2 shortest stacks on the table), this is for the people who hate to sit with 2 short stackers at 1 table (sometimes the avg stack filter didnt filter those tables out when the other stacks were >100bb so it needed this extra option).

Im especially the most proud of the code that reads table information from the lobby.

+ Added 1 extra advanced option (not interesting)



Need 1 more week to complete the script. Does anyone know if this script is against PokerStars' TOS?
Did you try emailing them? Would be interested to hear
New Script: TableOpener for PokerStars Quote
12-11-2009 , 08:28 AM
From a cursory look at the screenshot you provided, your software program
would indeed be inline with our third party tools policy.

Of course, we won't be able to give you a concrete answer until we are able
to test the application ourself and see all the features, but I don't
envisage seeing any issues here.

If you have any further questions, please don't hesitate to ask.


I guess I'll be finishing this by the end of the month
New Script: TableOpener for PokerStars Quote
12-11-2009 , 08:52 AM
Quote:
Originally Posted by Thois
Code:
;Juks rocks - I deactivated WinActivate so that the Lobby doesnt steal focus
PostLeftClick(x, y, table_id, activate=1) {
; ### JUK: Send the down left click, then the mouse-up messages.
; NOTE: This is relative to the top left of the client area and NOT the top left of the
;       window (ie: It *doesn't* include the title-bar like AHK's MouseClick does!!!).
If activate
; WinActivate, ahk_id%table_id%
PostMessage, 0x201, 0x0001, ((y<<16)^x), , ahk_id%table_id%
PostMessage, 0x202 , 0, ((y<<16)^x), , ahk_id%table_id%
}
I guess you should comment this line too:
Code:
; If activate
; WinActivate, ahk_id%table_id%
Not important at all though.
New Script: TableOpener for PokerStars Quote
12-19-2009 , 11:16 AM
any update on how this program is going?
New Script: TableOpener for PokerStars Quote
12-21-2009 , 04:24 PM
How do you read stats from lobby list?
New Script: TableOpener for PokerStars Quote
12-26-2009 , 01:41 AM
wow! cant wait
look good
New Script: TableOpener for PokerStars Quote
12-26-2009 , 09:21 AM
this tool can still be used?
New Script: TableOpener for PokerStars Quote
12-27-2009 , 05:08 PM
I wouldnt use it, it's full of bugs, I wrote this while I was still learning the AHK programming language... I'd wait for version 2 which Im still working on (it will be sick).. Expect it in mid-january (its a little side project right now so progress is going slow)...
New Script: TableOpener for PokerStars Quote
12-27-2009 , 09:56 PM
Quote:
Originally Posted by Thois
I wouldnt use it, it's full of bugs, I wrote this while I was still learning the AHK programming language... I'd wait for version 2 which Im still working on (it will be sick).. Expect it in mid-january (its a little side project right now so progress is going slow)...
thought u said it'll be done by the end of DECEMBER

New Script: TableOpener for PokerStars Quote
12-27-2009 , 10:51 PM
I'm stoked for this.
New Script: TableOpener for PokerStars Quote
12-28-2009 , 06:54 PM
Will this ever be available for fulltilt. And is it possible to ever add a feature to auto "Sit out/Sit back in" on all tables? Would be amazing.
New Script: TableOpener for PokerStars Quote
01-05-2010 , 01:43 PM
Go for it Thois, my donation is waiting!
New Script: TableOpener for PokerStars Quote

      
m