Open Side Menu Go to the Top

07-18-2010 , 05:22 PM
Hey
I try to make script not open useless tables. Only want tables of 2+ people opening. What must I add?

Script:
Code:
settitlematchmode,2
#Persistent
#SingleInstance force


tables:=25 ;block of tables
scrolls:=4 ;number of blocks to open before returning to the first table in the list
sleeptabletime:=1 ;pause time between tables, sec
sleepblocktime:=70 ;pause time between blocks, sec


joingroup(tables,scrolls,sleeptabletime,sleepblocktime*1000)
return

f1::
pause,toggle
return

f2::
reload
return

joingroup(tables,scrolls,tabletime,blocktime)
{
winget,id,id,PokerStars Lobby - ahk_class #32770
{
joinbutton=PokerStarsButtonClass10
list=PokerStarsListClass1
controlfocus,PokerStarsListClass1,,ahk_id%id%
sleep,-1
controlsend,PokerStarsListClass1,{PgUp 60},ahk_id%id%
loop
{
loop %scrolls%
{
loop %tables%
{
SetControlDelay,-1
controlfocus,%joinbutton%,,ahk_id%id%
sleep,-1
PostLeftClick(50,25,id,0,joinbutton)
controlfocus,PokerStarsListClass1,,ahk_id%id%
sleep,-1
controlsend,PokerStarsListClass1,{Down},ahk_id%id%
winwait,PokerStars ahk_class #32770,,%tabletime%,PokerStars Lobby -
if !errorlevel
{
winget,ctrls,controllist,
if ctrls=Button1
winclose
Gui, 99:Add, Text,,Table limit riched, script was paused
Gui, 99:+ToolWindow
Gui, 99:Show, w200 h40
Sleep, 2500
Gui, 99:Destroy
pause
}
}
sleep, %blocktime%
}
controlfocus,PokerStarsListClass1,,ahk_id%id%
sleep,-1
controlsend,PokerStarsListClass1,{PgUp 60},ahk_id%id%
}
}
}
return

PostLeftClick(x, y, table_id, activate=1, control_class="") {
; ### 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%
critical,6
PostMessage, 0x201, 0x0001, ((y<<16)^x), %control_class%, ahk_id%table_id%
PostMessage, 0x202 , 0, ((y<<16)^x), %control_class%, ahk_id%table_id%
critical,off
sleep,-1
}
return

Last edited by _dave_; 07-18-2010 at 11:59 PM. Reason: USE CODE TAGS!
AHK script question Quote
AHK script question
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
AHK script question
07-18-2010 , 11:58 PM
Why yet another account, and yet another thread?

It is far more work than it is worth doing to identify how many players are seated from the lobby, you're just gonna have to live with opening empty tables too.

Sort the lobby so they appear at the bottom of the list and then you won't get them until all full tables are opened first.
AHK script question Quote
07-19-2010 , 07:21 AM
If it opens empty ones too then within 15-20 mins my client stops responding and I have to force close and re-open
AHK script question Quote
07-19-2010 , 10:59 AM
what dave is saying is that its not an easy job, so offering $20 for someone to do it probably isnt gonna work
AHK script question Quote
07-19-2010 , 02:16 PM
yeah needs ocr on the lobby or something. def not trivial.

besides, it is unnecessary. you need to handle the "this table has been closed" modal dialog I would think if your client is "locking up" after 15-20 mins of an empty table.


Run my StarsPlanner script, or hjalper or TN etc to deal with this issue.
AHK script question Quote
07-19-2010 , 05:40 PM
I have the abilities to open unlimited tables...
AHK script question Quote
07-19-2010 , 05:58 PM
I don't see how that's relevant? and is pretty much assumed from your previous posts.

Are you saying the "this table has been closed" dialog is being handled already and is not the cause of being unable to interact further ith the lobby?
AHK script question Quote
07-19-2010 , 06:25 PM
It would be nice to have it close the "this table has been closed" games, but not really all that important. What I want is as it opens new ones to just open ones with 2 or more. If over time theres a bunch of "this table has been closed" so be it--but when I can open 50 tables (up to 999 if I wanted!) and all over time more then half of them are inactive is what bothers me. Really all I care about is not opening in-active tables...

Someone told me I could add:
if (Players < 2)
gosub, skiptable

to the script for that - but I can't seem to get it to work. Must be doing something wrong.
AHK script question Quote
07-19-2010 , 06:43 PM
lol, yes you can add "if players <2, skiptable" of course that is trivial. The very difficult part is accurately filling the variable "players" with a number!

I really don't get it. there is imo no problem opening "useless tables". you SAY you have a problem of the lobby becoming unresponsive after 15-20 minutes. for some reason you assume this is because you are opening empty tables? this assumption is wrong. to avoid lobby locking up you need to close that popup, as previously described.

Another (already mentioned!) method, sort the lobby descending by player count, and limit the script to only open 500 tables (or however many is a sensible default to avoid the empty ones),
AHK script question Quote
07-19-2010 , 06:53 PM
You talk like I know programming dude. OBVIOUSLY tahts why I am in the forum in the first place. And Yes over time I ahve it open about 1200 tables - and once it gets over 1000 pokerstars STOPS RESPONDING and all tables are frozen and I have to close - open - and re-sign in - and start over again. Without USELESS TABLES I would ahve about half the amount open - therefor it would not STOP RESPONDING. So yes MY ASSUMPTION IS RIGHT because the second it hits over 1000 - it fails. IF IT WAS ONLY OPENING ACTIVE TABLES - IT WOULD BE MUCH LESS THEN 1000. I have no popup problems - no pop-up is coming up causing an error WHATSOEVER - as previously described.

Yes - I can sort the lobby by ascending players highest to smallest -- well what about the heads up games ? So it opens up the highest to smallest -- -then tehres about 500 empty tables until it gets down to the heads up (its how the lobby breaks it up - heads up is at the bottom of hte list no matter how its sorted highest to smallest).
AHK script question Quote
07-19-2010 , 11:16 PM
OK fair enough.

The first few posts in this thread did say it is very hard to code an ahk to only open tables with two or more players, it's just not a simple tip someone can give what to add.

If you didn't suggest the problem was due to the (as it turns out completely irrelevant) 15-20 minutes time elapsed since opening an empty table, I doubt anyone would have thought the message box was the issue.

given that it is failaing "the second it hits over 1000" I would suggest the Stars client is unable to load more than 1000 tables per client, and you're gonna have to use a more complex setup to datamine 100% of hands or whatever it is you are trying to do. maybe 1 client per level or something like that.
AHK script question Quote
07-19-2010 , 11:46 PM
I run 3 VM's breaking up games and risks and a dif script runs stopping it from loading more then 999 tables. Even at 8 gigs of memory I have (unless running "TinyXP") I cant afford to really run more then 3 VM's at 1500-2gigs allocated memory. I would have soo many less problems if it just didn't open tables with less then 2 people seated.

I guess its not feasible and I apologize for getting smart - I've literally just messed with it for like 5 days and feel like I got no where on my own - so I wanted to ask because I am so frustrated.

Thanks anyways.
AHK script question Quote
07-20-2010 , 12:28 AM
Oh it is feasible, probably just gonna take a good while of coding / testing at least. You're gonna need to learn a bit of programming too.

If you are very lucky, you can get away with this:

capture bmp images of 0 and 1 from the players column, when row is selected (highlighted). save these to where your script is.
work out on-screen coordinates for where the "players" column is
Use AHK's Imagesearch function to scan if there is zero or 1 players
if true, skiptable (don't click the joinbutton)

That is, if you are lucky. if you are unlucky, Stars won't show a zero (only blank) then you'll have to try and check for all possible good numbers of players.
AHK script question Quote
07-20-2010 , 02:23 PM
Quote:
Originally Posted by _dave_
yeah needs ocr on the lobby or something. def not trivial.

besides, it is unnecessary. you need to handle the "this table has been closed" modal dialog I would think if your client is "locking up" after 15-20 mins of an empty table.


Run my StarsPlanner script, or hjalper or TN etc to deal with this issue.
how do I go this with Table Ninja? i lose tables sometimes and they end up closed with the pop up and have to manually close them.

I don't use Stars Planner, but would it be easier to use that to handle the problem?
AHK script question Quote
07-20-2010 , 04:11 PM
Oops I'd just guessed TN would handle that popup - it does auto-close most others iirc?
It's in the list of StarsPlanner popups so just running it will auto-close it, same with hjalper (which is well worth a try if you haven't already)
AHK script question Quote
07-20-2010 , 06:22 PM
Quote:
Originally Posted by _dave_
Oops I'd just guessed TN would handle that popup - it does auto-close most others iirc?
It's in the list of StarsPlanner popups so just running it will auto-close it, same with hjalper (which is well worth a try if you haven't already)
I just downloaded Stars Planner v0.4j and I don't see it.

The only option that seems possible is "answer waitlists"
AHK script question Quote
07-22-2010 , 07:07 PM
$40 to whoever can make it only open tables with 2 or more people - and skip the rest.
AHK script question Quote
07-25-2010 , 05:41 PM
Quote:
Originally Posted by DdoubleTtrouble
$40 to whoever can make it only open tables with 2 or more people - and skip the rest.
+1

Could it possibly close tables that say "This table has been closed" too?
AHK script question Quote
07-25-2010 , 08:00 PM
Anything to auto sit-out when a table gets down to 3 or 2 people?
AHK script question Quote
07-27-2010 , 11:31 PM
Quote:
Originally Posted by DdoubleTtrouble
$40 to whoever can make it only open tables with 2 or more people - and skip the rest.
anything can be done for the right price. your table opener request was simple, so the market was quick and gave you three solutions for your $15 offer. this request, not as simple.

Quote:
Originally Posted by hennerz
Anything to auto sit-out when a table gets down to 3 or 2 people?
i def think this should be possible...
AHK script question Quote
07-28-2010 , 06:06 PM
[QUOTE=greg nice;20527163]anything can be done for the right price. your table opener request was simple, so the market was quick and gave you three solutions for your $15 offer. this request, not as simple.


a reason why I offered more
AHK script question Quote
07-30-2012 , 01:15 PM
Quote:
Originally Posted by hennerz
Anything to auto sit-out when a table gets down to 3 or 2 people?
bump

looking for a script that does precisely this : automatically close pokertars table when there is less than 4 players (including me)

any hint appreciated

i can pay for it if necessary....

Last edited by Psycho Boy Jack; 07-30-2012 at 01:37 PM.
AHK script question Quote
07-31-2012 , 12:33 PM
Quote:
Originally Posted by DdoubleTtrouble
You talk like I know programming dude. OBVIOUSLY tahts why I am in the forum in the first place.
You get help and yet act arrogant, thats not how it works in life, dude.
AHK script question Quote
08-03-2012 , 07:22 AM
Quote:
Originally Posted by msim
You get help and yet act arrogant, thats not how it works in life, dude.
#

getting pretty much help for his attitude. $40 offer is ridiculous aswell.
AHK script question Quote
AHK script question
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
AHK script question

      
m