Two Plus Two Publishing LLC
Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > >

Notices

Heads Up SNG and Spin and Gos Discussion of heads up Sit & Go and Spin and Go poker games. Sponsored by HUSNG.com, the leading heads up poker video site.

Reply
 
Thread Tools Display Modes
Old 12-18-2012, 04:21 AM   #1
++++
centurion
 
++++'s Avatar
 
Join Date: Nov 2011
Posts: 163
Exclamation ***stars auto register script***

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!
++++ is offline   Reply With Quote
Old 12-18-2012, 04:24 AM   #2
ohly
Pooh-Bah
 
ohly's Avatar
 
Join Date: Jan 2008
Location: Berlin
Posts: 3,693
Re: ***stars auto register script***

yes, pleaaaaaaseee
ohly is offline   Reply With Quote
Old 12-18-2012, 04:55 AM   #3
Benjamin the Donk
old hand
 
Benjamin the Donk's Avatar
 
Join Date: Mar 2012
Location: Micros. Don't trust my advice :)
Posts: 1,254
Re: ***stars auto register script***

When did this stop working for everyone? Mine was working yesterday (not home atm)
Benjamin the Donk is offline   Reply With Quote
Old 12-18-2012, 04:59 AM   #4
Irregular
adept
 
Irregular's Avatar
 
Join Date: Jun 2012
Posts: 853
Re: ***stars auto register script***

Mine works also
Irregular is offline   Reply With Quote
Old 12-18-2012, 05:05 AM   #5
++++
centurion
 
++++'s Avatar
 
Join Date: Nov 2011
Posts: 163
Re: ***stars auto register script***

probablly with last update? 2-3 days ago for me.
++++ is offline   Reply With Quote
Old 12-18-2012, 05:48 AM   #6
Irregular
adept
 
Irregular's Avatar
 
Join Date: Jun 2012
Posts: 853
Re: ***stars auto register script***

I don't remember having any updates :O
Irregular is offline   Reply With Quote
Old 12-18-2012, 06:01 AM   #7
++++
centurion
 
++++'s Avatar
 
Join Date: Nov 2011
Posts: 163
Re: ***stars auto register script***

close client and reopen.
++++ is offline   Reply With Quote
Old 12-18-2012, 06:03 AM   #8
ohly
Pooh-Bah
 
ohly's Avatar
 
Join Date: Jan 2008
Location: Berlin
Posts: 3,693
Re: ***stars auto register script***

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
ohly is offline   Reply With Quote
Old 12-18-2012, 06:14 AM   #9
Benjamin the Donk
old hand
 
Benjamin the Donk's Avatar
 
Join Date: Mar 2012
Location: Micros. Don't trust my advice :)
Posts: 1,254
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.
Benjamin the Donk is offline   Reply With Quote
Old 12-18-2012, 07:26 AM   #10
Wisher
grinder
 
Wisher's Avatar
 
Join Date: Jan 2012
Posts: 602
Re: ***stars auto register script***

If someone could attach the original script I may try and fix it.
Wisher is offline   Reply With Quote
Old 12-18-2012, 07:28 AM   #11
ohly
Pooh-Bah
 
ohly's Avatar
 
Join Date: Jan 2008
Location: Berlin
Posts: 3,693
Re: ***stars auto register script***

Quote:
Originally Posted by Wisher View Post
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
ohly is offline   Reply With Quote
Old 12-18-2012, 09:09 AM   #12
Wisher
grinder
 
Wisher's Avatar
 
Join Date: Jan 2012
Posts: 602
Re: ***stars auto register script***

Quote:
Originally Posted by ohly View Post
...
Looks quite complicated.
Tonight I have a birthday to attend and probably tomorrow will be able to look at it.
Wisher is offline   Reply With Quote
Old 12-18-2012, 09:30 AM   #13
ohly
Pooh-Bah
 
ohly's Avatar
 
Join Date: Jan 2008
Location: Berlin
Posts: 3,693
Re: ***stars auto register script***

thank you!
unfortunately i have no knowledge of that programming language and would probably take ages to understand the code
ohly is offline   Reply With Quote
Old 12-18-2012, 10:13 AM   #14
++++
centurion
 
++++'s Avatar
 
Join Date: Nov 2011
Posts: 163
Re: ***stars auto register script***

Quote:
Originally Posted by ohly View Post
thank you!
unfortunately i have no knowledge of that programming language and would probably take ages to understand the code
+1
++++ is offline   Reply With Quote
Old 12-18-2012, 01:12 PM   #15
Irregular
adept
 
Irregular's Avatar
 
Join Date: Jun 2012
Posts: 853
Re: ***stars auto register script***

got the update and the script stoped working, so +2
Irregular is offline   Reply With Quote
Old 12-18-2012, 02:30 PM   #16
lovehatepoker
grinder
 
lovehatepoker's Avatar
 
Join Date: Aug 2010
Location: southampton, United Kingdom
Posts: 630
Re: ***stars auto register script***

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 :-)
lovehatepoker is offline   Reply With Quote
Old 12-18-2012, 03:50 PM   #17
isellmykids
journeyman
 
Join Date: Oct 2012
Location: Orion–Cygnus Arm
Posts: 343
Re: ***stars auto register script***

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.
isellmykids is offline   Reply With Quote
Old 12-18-2012, 09:26 PM   #18
_dave_
_Pooh_Bah_
 
Join Date: Feb 2005
Location: UK (or what remains of it)
Posts: 13,092
Re: ***stars auto register script***

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
_dave_ is offline   Reply With Quote
Old 12-19-2012, 02:25 AM   #19
++++
centurion
 
++++'s Avatar
 
Join Date: Nov 2011
Posts: 163
Re: ***stars auto register script***

thanks a lot _dave_ very much appreciate your effort!
++++ is offline   Reply With Quote
Old 12-21-2012, 06:12 AM   #20
JesperTP
journeyman
 
Join Date: Apr 2012
Posts: 249
Re: ***stars auto register script***

So what does it do? On my phone atm. Does it just open a new sng when previous ends or what's it about?
JesperTP is offline   Reply With Quote
Old 12-21-2012, 06:22 AM   #21
Benjamin the Donk
old hand
 
Benjamin the Donk's Avatar
 
Join Date: Mar 2012
Location: Micros. Don't trust my advice :)
Posts: 1,254
Re: ***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.
Benjamin the Donk is offline   Reply With Quote
Old 01-21-2013, 02:01 PM   #22
JesperTP
journeyman
 
Join Date: Apr 2012
Posts: 249
Re: ***stars auto register script***

Quote:
Originally Posted by Benjamin the Donk View Post
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?
JesperTP is offline   Reply With Quote
Old 01-21-2013, 02:18 PM   #23
++++
centurion
 
++++'s Avatar
 
Join Date: Nov 2011
Posts: 163
Re: ***stars auto register script***

yes, anyway buy in restriction is still 100% also when you tilt and it still works!
++++ is offline   Reply With Quote
Old 01-21-2013, 08:42 PM   #24
doodiewiz
journeyman
 
Join Date: Mar 2011
Location: London
Posts: 339
Re: ***stars auto register script***

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.
doodiewiz is offline   Reply With Quote
Old 01-21-2013, 10:26 PM   #25
_dave_
_Pooh_Bah_
 
Join Date: Feb 2005
Location: UK (or what remains of it)
Posts: 13,092
Re: ***stars auto register script***

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)
_dave_ is offline   Reply With Quote

Reply
      

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Forum Jump


All times are GMT -4. The time now is 05:36 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright 2008-2020, Two Plus Two Interactive
 
 
Poker Players - Streaming Live Online