Open Side Menu Go to the Top
Register
***stars auto register script*** ***stars auto register script***

12-18-2012 , 04:21 AM
Could someone please provide or fix previous script (form: _dave_) for registering and closing pop-up when registering to tounrnament. Since recent update it's not working anymore.

thanks!
12-18-2012 , 04:24 AM
yes, pleaaaaaaseee
12-18-2012 , 04:55 AM
When did this stop working for everyone? Mine was working yesterday (not home atm)
12-18-2012 , 04:59 AM
Mine works also
12-18-2012 , 05:05 AM
probablly with last update? 2-3 days ago for me.
12-18-2012 , 05:48 AM
I don't remember having any updates :O
12-18-2012 , 06:01 AM
close client and reopen.
12-18-2012 , 06:03 AM
i suppose that people who are not facing the issue aren't using the pokerstarsupdate.exe
they have to manually update which i wouldn't do if you are using dave's script
12-18-2012 , 06:14 AM
I only update when I open the client and it says to.

Last edited by Benjamin the Donk; 12-18-2012 at 06:28 AM.
12-18-2012 , 07:26 AM
If someone could attach the original script I may try and fix it.
12-18-2012 , 07:28 AM
Quote:
Originally Posted by Wisher ***stars auto register script***
If someone could attach the original script I may try and fix it.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
#Persistent
#SingleInstance, Force
SetTitleMatchMode, 2
SetTimer, autoreg, 1
SetTimer, autoreg, On

; THIS IS THE ONLY SETTING, true / false
autoreg_to_similar := true

return

autoreg:

Winget, ps_pid, pid, PokerStars Lobby


; THIS HANDLES THE REGISTER DIALOG
IfWinExist, Tournament Registration ahk_class #32770 ahk_pid%ps_pid%
{
WinGet, idlist, list, Tournament Registration ahk_class #32770 ahk_pid%ps_pid%
Loop, %idlist%
{
id := idlist%A_Index%
WinGet, clist, ControlList, ahk_id%id%
Loop, 20
{
if (InStr(clist, "PokerStarsButtonClass2"))
{
ControlFocus, PokerStarsButtonClass2, ahk_id%id%
ControlSend, PokerStarsButtonClass2, {SPACE}, ahk_id%id%
}
else
{
if (autoreg_to_similar)
{
ControlFocus, Button2, ahk_id%id%
ControlSend, Button2, {SPACE}, ahk_id%id%
}
ControlFocus, OK, ahk_id%id%
ControlSend, OK, {SPACE}, ahk_id%id%
}
Sleep, 1
IfWinNotExist, ahk_id%id%
{
break
}
}
Sleep, 1
}
}


; THIS WILL HANDLE ANY POPUP WITH ONLY ONE BUTTON
IfWinExist, PokerStars ahk_class #32770 ahk_pid%ps_pid%
{
WinGet, idlist, list, PokerStars ahk_class #32770 ahk_pid%ps_pid%, , Lobby
Loop, %idlist%
{
id := idlist%A_Index%
WinGet, clist, ControlList, ahk_id%id%
if (InStr(clist, "Button2") || InStr(clist, "PokerStarsButtonClass2"))
{
continue
}
else
{
Loop, 20
{
;MsgBox, hhdjsak
;WinActivate, ahk_id%id%
if (InStr(clist, "Button1"))
{
ControlFocus, Button1, ahk_id%id%
ControlSend, Button1, {SPACE}, ahk_id%id%
}
else
{
ControlFocus, PokerStarsButtonClass1, ahk_id%id%
ControlSend, PokerStarsButtonClass1, {SPACE}, ahk_id%id%
}
Sleep, 1

}
Sleep, 1
}
}
}
return
12-18-2012 , 09:09 AM
Quote:
Originally Posted by ohly ***stars auto register script***
...
Looks quite complicated.
Tonight I have a birthday to attend and probably tomorrow will be able to look at it.
12-18-2012 , 09:30 AM
thank you!
unfortunately i have no knowledge of that programming language and would probably take ages to understand the code
12-18-2012 , 10:13 AM
Quote:
Originally Posted by ohly ***stars auto register script***
thank you!
unfortunately i have no knowledge of that programming language and would probably take ages to understand the code
+1
12-18-2012 , 01:12 PM
got the update and the script stoped working, so +2
12-18-2012 , 02:30 PM
Thoguth I would have a quikc look, I dont know ahk at all but I kinda know basics of programming.

I cant get the script to tick the box which registers if full, but I have managed to get it to actually just register normally.

Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
#Persistent
#SingleInstance, Force
SetTitleMatchMode, 2
SetTimer, autoreg, 1
SetTimer, autoreg, On

; THIS IS THE ONLY SETTING, true / false
autoreg_to_similar := true

return

autoreg:

Winget, ps_pid, pid, PokerStars Lobby


; THIS HANDLES THE REGISTER DIALOG
IfWinExist, Tournament Registration ahk_class #32770 ahk_pid%ps_pid%
{
WinGet, idlist, list, Tournament Registration ahk_class #32770 ahk_pid%ps_pid%
Loop, %idlist%
{
id := idlist%A_Index%
WinGet, clist, ControlList, ahk_id%id%
Loop, 20
{
if (InStr(clist, "PokerStarsButtonClass1"))
{
ControlFocus, PokerStarsButtonClass1, ahk_id%id%
ControlSend, PokerStarsButtonClass1, {SPACE}, ahk_id%id%
}
else
{
if (autoreg_to_similar)
{
ControlFocus, Button2, ahk_id%id%
ControlSend, Button2, {SPACE}, ahk_id%id%
}
ControlFocus, OK, ahk_id%id%
ControlSend, OK, {SPACE}, ahk_id%id%
}
Sleep, 1
IfWinNotExist, ahk_id%id%
{
break
}
}
Sleep, 1
}
}


; THIS WILL HANDLE ANY POPUP WITH ONLY ONE BUTTON
IfWinExist, PokerStars ahk_class #32770 ahk_pid%ps_pid%
{
WinGet, idlist, list, PokerStars ahk_class #32770 ahk_pid%ps_pid%, , Lobby
Loop, %idlist%
{
id := idlist%A_Index%
WinGet, clist, ControlList, ahk_id%id%
if (InStr(clist, "Button2") || InStr(clist, "PokerStarsButtonClass2"))
{
continue
}
else
{
Loop, 20
{
;MsgBox, hhdjsak
;WinActivate, ahk_id%id%
if (InStr(clist, "Button1"))
{
ControlFocus, Button1, ahk_id%id%
ControlSend, Button1, {SPACE}, ahk_id%id%
}
else
{
ControlFocus, PokerStarsButtonClass1, ahk_id%id%
ControlSend, PokerStarsButtonClass1, {SPACE}, ahk_id%id%
}
Sleep, 1

}
Sleep, 1
}
}
}
return
use at own risk though im no coder :-)
12-18-2012 , 03:50 PM
Lol why you didn't tried it?
I've been coding with AHK 4 years ago. It's so easy learn BTW. You can make macro to automate stuff, it's absolutely awesome. I had made a bot that could play video games with it and won 250$ :P.
12-18-2012 , 09:26 PM
here's a fixed / updated version.

Seems PokerStars fixed the titles on the popups so they now all come under "Tournament Registration" with this version, and added the black buttons to a couple dialogs that didn't have them yet.

I'd have done this sooner but been behind on a lot of work projects, not had much chance to play recently!

Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
#Persistent
#SingleInstance, Force
SetTitleMatchMode, 2
SetTimer, autoreg, 125
SetTimer, autoreg, On

; THIS IS THE ONLY SETTING, true / false
autoreg_to_similar := true

return

autoreg:

Winget, ps_pid, pid, PokerStars Lobby


; THIS HANDLES THE REGISTER DIALOG
IfWinExist, Tournament Registration ahk_class #32770 ahk_pid%ps_pid%
{
  WinGet, idlist, list, Tournament Registration ahk_class #32770 ahk_pid%ps_pid%
  Loop, %idlist%
  {
    id := idlist%A_Index%
    
    WinGet, clist, ControlList, ahk_id%id%
    Loop, 20
    {
      if (InStr(clist, "PokerStarsButtonClass2")) ; actual reg dialog or the disco popup
      {
        disconnect_window := ""
        Wingettext, disconnect_window, ahk_id%id%
        if (InStr(disconnect_window, "Show Lobby"))
        {
          ControlFocus, PokerStarsButtonClass2, ahk_id%id%
          ControlSend, PokerStarsButtonClass2, {SPACE}, ahk_id%id%
          Sleep, 20
          continue
        }
        
        if (autoreg_to_similar)
        {
          ControlFocus, Button2, ahk_id%id%
          ControlSend, Button2, {SPACE}, ahk_id%id%
        }
        ControlFocus, PokerStarsButtonClass1, ahk_id%id%
        ControlSend, PokerStarsButtonClass1, {SPACE}, ahk_id%id%
      }
      else  ; registration is closed
      {
        ControlFocus, PokerStarsButtonClass1, ahk_id%id%
        ControlSend, PokerStarsButtonClass1, {SPACE}, ahk_id%id%
      }
      Sleep, 20
      IfWinNotExist, ahk_id%id%
      {
        break
      }
    }
    Sleep, 20
  }
}


; THIS WILL HANDLE ANY POPUP WITH ONLY ONE BUTTON
; Mainly this is now "you finished in Xth place"
IfWinExist, PokerStars ahk_class #32770 ahk_pid%ps_pid%
{
  WinGet, idlist, list, PokerStars ahk_class #32770 ahk_pid%ps_pid%, , Lobby
  Loop, %idlist%
  {
    id := idlist%A_Index%
    WinGet, clist, ControlList, ahk_id%id%
    if (InStr(clist, "Button2") || InStr(clist, "PokerStarsButtonClass2"))
    {
      continue
    }
    else
    {
      Loop, 20
      {
        ;WinActivate, ahk_id%id%
        if (InStr(clist, "Button1"))
        {
          ControlFocus, Button1, ahk_id%id%
          ControlSend, Button1, {SPACE}, ahk_id%id%
        }
        else
        {
          ControlFocus, PokerStarsButtonClass1, ahk_id%id%
          ControlSend, PokerStarsButtonClass1, {SPACE}, ahk_id%id%
        }
        Sleep, 20
      }
      Sleep, 20
    }
  }
}

return
12-19-2012 , 02:25 AM
thanks a lot _dave_ very much appreciate your effort!
12-21-2012 , 06:12 AM
So what does it do? On my phone atm. Does it just open a new sng when previous ends or what's it about?
12-21-2012 , 06:22 AM
Thanks dave

It just auto-clicks all the annoying popups when you reg for a tournament. Be careful - if you have $1000 in your account and you reg for a 1k you'll won't get a chance to unreg.
01-21-2013 , 02:01 PM
Quote:
Originally Posted by Benjamin the Donk ***stars auto register script***
Thanks dave

It just auto-clicks all the annoying popups when you reg for a tournament. Be careful - if you have $1000 in your account and you reg for a 1k you'll won't get a chance to unreg.
If I set the filters to only show the stakes I play, I won't be able to reg to anything else than those. Right?

Does this script still work?
01-21-2013 , 02:18 PM
yes, anyway buy in restriction is still 100% also when you tilt and it still works!
01-21-2013 , 08:42 PM
Thanks Dave, very useful!

Was wondering if it's possible to set a timer going with an AHK script? You know so you can check the lobby every second to see if it's full? Haha just wondering what you can do with an AHK script... I'm guessing it's not possible to check the lobby state anyway ie if someone is regged...

Last edited by doodiewiz; 01-21-2013 at 09:06 PM.
01-21-2013 , 10:26 PM
That sort of thing is certainly possible (see SetTimer command), but it's not easy to check lobby to see if it's full, this requires quite some thought.

FWIW there's very little you couldn't do with an AHK script, given enough thought - e.g. Sharkystrator is a script also (AutoIT rather than AutoHotkey, the two languages are "cousins", very similar with a common heritage)

      
m