Open Side Menu Go to the Top
Register
AHK script:Stars Filtered SNG Opener AHK script:Stars Filtered SNG Opener

05-16-2014 , 12:25 AM
Hello,
I was using SFSO 4.0.1b , but after today's Pokerstars update, it stopped registering for sngs.

Can anyone provide the latest version? It seems to be 4.8.3?


Thank you
AHK script:Stars Filtered SNG Opener Quote
05-16-2014 , 05:36 AM
Yes the script stopped working yesterday
AHK script:Stars Filtered SNG Opener Quote
05-17-2014 , 12:47 AM
Yes,
in fact, for whatever reason, it started working again.

Anyone has the link to the more recent version?
AHK script:Stars Filtered SNG Opener Quote
06-24-2014 , 07:48 AM
Hey guys,

If i put the maximum table open on 20.
And i reg in MTTs manuall, does it keep the maximum tables on 20 in total?
Or 20 sngs + the mtts?

PS: very nice script, thanks
AHK script:Stars Filtered SNG Opener Quote
07-18-2014 , 08:22 AM
hi, everyone. The script is great, but seems there are no updates
I tried to simplify it and add couple of functions
I think a simpler version might encourage users to look into it and improve it.
here goes my approach... I welcome any comments

; a simplified poker stars auto register script
; based on/inspired by SFSO_4.01b.ahk
; Thaks go to: Everlong@2p2, _dave_, chris228, finnisher, Max1mums

; ================================================== ========
; Need to have the "Show registering/upcoming only" activated in lobby
; Do not minimize PokerStars Lobby, just move it out of the way
; ================================================== ========

#NoEnv
#SingleInstance, Force
SendMode Input
SetWorkingDir %A_ScriptDir%
SetBatchLines, -1
SetTitleMatchMode, 2
StringTrimRight, thisahk, A_ScriptName, 4
regButton:="PokerStarsButtonClass10"
unregButton:="PokerStarsButtonClass8"
AutoRegister:=0
AutoSittingOut:=0
AutoWindowMaximize:=0

; ================================================== ========
; User defined variables
; ================================================== ========
MaxTablesInit:=3 ; Maximum number of Tables to keep open, Initial value
RegisterInterval:=30*1000 ; Register every X millisec
SittingOut:=1*60*1000 ; check and rejoin if Sitting Out every X millisec
WindowMaximize:=2*1000 ; check and Maximize all table Windows every X millisec
IdleCheck:=1*60*1000 ; Check if Idle every X millisec
IdleTime:=10*60*1000 ; PauseScript and UnRegisterAll, if Idle for X millisec
; ================================================== =========
; User defined variables
; ================================================== =========

if (IdleCheck>0)
SetTimer, Safeguard, %IdleCheck%
Gosub, BuildGui
Return


QuitScript:
ExitApp
Return

BuildGui:
Gui, Color, White
Gui, Font, cOlive
Gui, Add, Text,, Maximum Number of Open Tables
Gui, Add, Edit
Gui, Add, UpDown, vMaxTables, %MaxTablesInit%
Gui, Add, Button, w190 gSittingOut, &Check if Sitting [O]ut and Go Back
Gui, Add, Checkbox, vAutoSittingOut, &Auto
Gui, Add, Button, w190 gWindowMaximize, &Maximize all Table [W]indows
Gui, Add, Checkbox, vAutoWindowMaximize, &Auto
Gui, Add, Button, w190 gStartScript, &[S]ubmit and Start/Continue Script
Gui, Add, Button, w190 gLobbyRestore, &Restore [L]obby
Gui, Add, Button, w190 gUnRegisterAll, &[U]n-Register All
Gui, Add, Button, w190 gPauseScript, &[P]ause Script
Gui, Add, Button, w190 gQuitScript, &[Q]uit Script
Gui, Add, Text, w250 cBlue, hotkeys: Ctl + Alt + letter_in_brackets
Gui, Add, Text, w250 cRed vStatus, Status: Idle
Gui, Show, w260, %thisahk%
Gui, Show, x0 y0, %thisahk%
Sleep, -1
Gosub, PauseScript
Return

Safeguard:
if (A_TimeIdle > IdleTime)
{
Gosub, PauseScript
Gosub, UnRegisterAll
GuiControl,, Status, Status: Stopped due to inactivity
}
Return

PauseScript:
Critical
AutoRegister:=0
AutoSittingOut:=0
AutoWindowMaximize:=0
SetTimer, Register, off
SetTimer, AutoClose, off
SetTimer, WindowMaximize, off
SetTimer, SittingOut, off
SetTimer, SafeGuard, off
GuiControl,, Status, Status: Script Paused
Return

StartScript:
Gui, Submit, NoHide
SetTimer, AutoClose, 100
if (SittingOut>0 AND AutoSittingOut=1)
SetTimer, SittingOut, %SittingOut%
else
SetTimer, SittingOut, off
if (WindowMaximize>0 AND AutoWindowMaximize=1)
SetTimer, WindowMaximize, %WindowMaximize%
else
SetTimer, WindowMaximize, off
if (RegisterInterval>0) {
Gosub, Register
SetTimer, Register, %RegisterInterval%
}
Sleep, -1
Return

Register:
AutoRegister:=1
SetTitleMatchMode, 2
WinGet, LobbyId, Id, PokerStars Lobby - ahk_class #32770
if !LobbyId
{
GuiControl,, Status, Status: PokerStars Lobby not found
Return
}
ControlSend, PokerStarsListClass3, {NumpadUp 20}, ahk_id%LobbyId%
WinGet, PhysicalTables, list, Table ahk_class PokerStarsTableFrameClass
if PhysicalTables is not Number
PhysicalTables:=0
if (PhysicalTables >= MaxTables)
{
GuiControl,, Status, Status: Set Full at %PhysicalTables% tables _ Waiting
Return
}
timestoReg := MaxTables - PhysicalTables
RegSNGexec(LobbyID, timestoReg)
Return

RegSNGexec(id, times) {
global AutoRegister
global regButton
global unregButton
Loop %times% {
GuiControl,, Status, Status: Registering %times% times
if (AutoRegister = 0) {
GuiControl,, Status, Status: Idle
Exit
}
ControlGet, regBtnVis, Visible,, %regButton%, ahk_id%id%
if (regBtnVis = 1) {
ControlSend, %regButton%, {Space}, ahk_id%id%
ControlSend, %regButton%, {Space}, ahk_id%id%
Sleep, 30
ControlSend, PokerStarsListClass3, {NumpadDown}, ahk_id%id%
Sleep, 30
GuiControl,, Status, Status: Waiting
} else {
ControlGet, unregBtnVis, Visible,, %unregButton%, ahk_id%id%
if (unregBtnVis = 1) {
GuiControl,, Status, Status: Already registered game found _ Waiting
Sleep, 30
ControlSend, PokerStarsListClass3, {NumpadDown}, ahk_id%id%
Sleep, 30
} else {
GuiControl,, Status, Status: No games found _ Waiting
Return
}
}
Sleep, -1
}
}
Return

UnRegisterAll:
WinGet, LobbyId, id, PokerStars Lobby - ahk_class #32770
if !LobbyId
{
GuiControl,, Status, Status: PokerStars Lobby not found
Return
}
ControlSend, PokerStarsListClass3, ^r, ahk_id%lobbyid%
WinWait, Registered In Tournaments ahk_class #32770,, 1
{
WinGet, regid, id, Registered In Tournaments ahk_class #32770
ControlGet, vis, Visible,, Button1, ahk_id%regid%
if vis {
ControlSend, Button1, {Space}, ahk_id%regid%
Sleep, 30
ControlSend, PokerStarsButtonClass2, {Space}, ahk_id%regid%
Sleep, 30
WinClose, ahk_id%regid%
}
}
Return

LobbyRestore:
WinGet, LobbyId, id, PokerStars Lobby - ahk_class #32770
if !LobbyId
{
GuiControl,, Status, Status: PokerStars Lobby not found
Return
}
WinShow, ahk_id%LobbyId%
WinMove, ahk_id%LobbyId%,, 0, 0
Return

AutoClose:
AutoClose()
Return
AutoClose()
{
SetTitleMatchMode,2
ifWinExist, Tournament Registration ahk_class #32770
{
WinGet, id1, id,
Sleep 30
WinClose, ahk_id%id1%
}
ifWinExist, PokerStars ahk_class #32770,, Lobby
{
WinGet, id2, id,
Sleep 30
WinClose, ahk_id%id2%
}
}
Return

SittingOut:
SittingOut()
Return
SittingOut()
{
activeid := WinExist("A")
SetTitleMatchMode,2
WinGet, TableWindows, List, Table ahk_class PokerStarsTableFrameClass
if TableWindows=0
Exit
Loop %TableWindows% {
id:=TableWindows%A_Index%
WinActivate, ahk_id%id%
WinGetPos,,, w, h, ahk_id%id%
x1:=0.82*w
y1:=0.85*h
Round(x1)
Round(y1)
x2:=x1+2
y2:=y1+2
ColorID:=0x141414
PixelSearch,,, x1, y1, x2, y2, ColorID, 20, ahk_id%id%, Fast
if (ErrorLevel=0)
Click %x1%, %y2%
Sleep, -1
}
WinActivate, ahk_id%activeid%
Sleep, 30
Sleep, -1
}
Return

WindowMaximize:
WindowMaximize()
Return
WindowMaximize()
{
SetTitleMatchMode,2
WinGet, TableWindows, List, Table ahk_class PokerStarsTableFrameClass
if TableWindows=0
Exit
Loop %TableWindows% {
id:=TableWindows%A_Index%
WinGetPos,,, w, h, ahk_id%id%
if (w<A_ScreenWidth AND w<1328)
PostMessage, 0x112, 0xF030,,, ahk_id%id%
Sleep, 30
Sleep, -1
}
}
Return

; hotkeys
^!o::
Gosub, SittingOut
Return

^!w::
Gosub, WindowMaximize
Return

^!s::
Gosub, StartScript
Return

^!l::
Gosub, LobbyRestore
Return

^!u::
Gosub, UnRegisterAll
Return

^!p::
Gosub, PauseScript
Return

^!h::
WinHide, %thisahk%
Return

^!r::
WinShow, %thisahk%
Return

~^!q::
ExitApp
AHK script:Stars Filtered SNG Opener Quote
07-18-2014 , 08:45 AM
Thank you very much sir, nicely done!
It looks really nice simple and I think it will be amazingly quick a?

Sir, what do you mean "Maximize all table Windows"?

I will try it tonight.

thx
AHK script:Stars Filtered SNG Opener Quote
07-28-2014 , 11:09 AM
tytytyty castor_ades7
simply perfect for me =))))
AHK script:Stars Filtered SNG Opener Quote
07-29-2014 , 10:01 AM
Great idea castor_ades7. I had to replace line 214 with 'ControlClick, PokerStarsButtonClass1, Tournament Registration' in order for it to work for me.
AHK script:Stars Filtered SNG Opener Quote
07-30-2014 , 01:05 PM
So is this latest script auto-register only, or does it handle stuff like automatically closing annoying dialogues and lobbies?
AHK script:Stars Filtered SNG Opener Quote
08-22-2014 , 06:22 PM
It doesn't auto clicks "I'm back" for me
AHK script:Stars Filtered SNG Opener Quote
09-02-2014 , 02:05 PM
Anyone actively maintaining this / have a working copy ?

The script posted above is very close to working for me.... it gets to the registration popup but doesn't successfully click the 'Ok' button...


EDIT:

Had to enable the advanced multi-table option - allow registering with 1 click.

Working nicely now ! Kudos to developer
AHK script:Stars Filtered SNG Opener Quote
09-03-2014 , 05:55 PM
Hi, which version of SFSO working on pokerstars 7? 4.3.8 and 4.01 (i used this version before update, working on pokerstars 6) does not register me. Version 4.2.8 displays "lobby not found". Need help

//sorry for my poor English
AHK script:Stars Filtered SNG Opener Quote
09-21-2014 , 09:48 AM
Hi guys,

Anyone know if this script is still working?

I just tried it and I keep getting this message - #include "file functions.ahk" cannot be opened.

Can anyone help?

Thanks!
AHK script:Stars Filtered SNG Opener Quote
09-25-2014 , 11:05 AM
The code castor_ades7 posted was working till today
Now since the update today it won't reg any games anymore - Status is always on waiting.

castor_ades7 please update <3
AHK script:Stars Filtered SNG Opener Quote
10-04-2014 , 05:05 AM
The scrip is no longer working

I am getting strange pop up msg about withdrawal application from home games of pokerstars when i start this scrip

can any1 please tell if the scrip is working or whats the problem

Thanks
AHK script:Stars Filtered SNG Opener Quote
10-04-2014 , 10:23 AM
Quote:
Originally Posted by 5plus5=55
The scrip is no longer working

I am getting strange pop up msg about withdrawal application from home games of pokerstars when i start this scrip

can any1 please tell if the scrip is working or whats the problem

Thanks
Seems ps changed some stuff in the new client.

the solution is to edit the settings.ahk, this is in the src directory.
search for psShowFilterButton -> change it to PokerStarsButtonClass41
search for psEnableFilterButton -> change it to PokerStarsButtonClass42
AHK script:Stars Filtered SNG Opener Quote
10-04-2014 , 10:35 AM
I typed a quick fix for the current railradio bug.
This all is based on SFSO 4.3.8

What I would like todo is update this SFSO to a version that has some issues solved.
So if you guys could give me some problems you have with the current version pls post it and I'll try to fix them.

Why I do this is, because I tried tableninjaII sensei and it has more bugs than this script and this script is free.
AHK script:Stars Filtered SNG Opener Quote
10-05-2014 , 06:06 PM
Hey katwax,
where can I find the current script? The link on the first page does not work

Thanks in advance
AHK script:Stars Filtered SNG Opener Quote
10-06-2014 , 02:37 AM
Quote:
Originally Posted by katwax
Seems ps changed some stuff in the new client.

the solution is to edit the settings.ahk, this is in the src directory.
search for psShowFilterButton -> change it to PokerStarsButtonClass41
search for psEnableFilterButton -> change it to PokerStarsButtonClass42
Thanks katwax i did what you said and above problem is solved

but now it is not registering and i am getting msg " IDLE(PS not in sng lobby 0

do i have to modify something else also ?
AHK script:Stars Filtered SNG Opener Quote
10-06-2014 , 07:12 AM
I created a wordpress site for this http://sfsosng.wordpress.com/
I'll publish new versions and updates about sfso on it so ppl don't have to search this here to find a link towards it.
AHK script:Stars Filtered SNG Opener Quote
10-06-2014 , 07:13 AM
Quote:
Originally Posted by 5plus5=55
Thanks katwax i did what you said and above problem is solved

but now it is not registering and i am getting msg " IDLE(PS not in sng lobby 0

do i have to modify something else also ?
could be you changed something you shouldn't. You can download it from the link above. That one works on my computer.
AHK script:Stars Filtered SNG Opener Quote
10-06-2014 , 08:25 AM
Thanks katwax for your help
AHK script:Stars Filtered SNG Opener Quote
10-06-2014 , 09:01 AM
Quote:
Originally Posted by 5plus5=55
Thanks katwax for your help
Np.

I made it version 4.3.9 and updated it. This way it is easier is the bug is reported ppl can refer to 4.3.9 to fix it.
AHK script:Stars Filtered SNG Opener Quote
10-06-2014 , 01:32 PM
Is there any way to set it up to open only empty lobbies?
AHK script:Stars Filtered SNG Opener Quote
10-06-2014 , 04:55 PM
Quote:
Originally Posted by katwax
Np.

I made it version 4.3.9 and updated it. This way it is easier is the bug is reported ppl can refer to 4.3.9 to fix it.
Version 4.3.9 works perfect for me (PS 6).

Thank you very much katwax for doing this, great job!
AHK script:Stars Filtered SNG Opener Quote

      
m