|
|
| Software Discussions about gambling-related and poker software. |
09-12-2010, 03:59 AM
|
#1
|
|
grinder
Join Date: Nov 2003
Location: British Columbia
Posts: 482
|
Table Counter AHK for PokerStars
I wrote a quick and dirty script because I couldn't find one elsewhere.
All it does is count your open tables and display them in a little window. It doesn't flicker, use a lot of CPU, or sell you Viagra. Script is provided as-is and I'll likely never work on it again.
Code:
#SingleInstance
Gui -MaximizeBox -Resize -MinimizeBox +AlwaysOnTop
Gui, Color, 000000
Gui, Font, s20 cWhite, Verdana
Gui, Add, Text, vMyControl Center, ---
Gui, Show, W90 H65, Tbls
lasttables = -1
Loop
{
numtables := 0
;snippet will find all pokerstars windows
WinGet, id, list, ahk_class PokerStarsTableFrameClass,, Program Manager
Loop, %id%
{
numtables += 1
}
if (numtables != lasttables)
{
GuiControl,, MyControl, %numtables%
lasttables = %numtables%
}
Sleep 1000
}
return
GuiClose:
ExitApp
Last edited by Daxonovitch; 09-12-2010 at 04:13 AM.
Reason: Fixed code.
|
|
|
09-12-2010, 06:17 AM
|
#2
|
|
newbie
Join Date: May 2007
Posts: 31
|
Re: Table Counter AHK for PokerStars
thanks, cool script
|
|
|
09-12-2010, 09:00 AM
|
#3
|
|
veteran
Join Date: Oct 2009
Location: repping SD value
Posts: 2,433
|
Re: Table Counter AHK for PokerStars
Oh snap
tyvm
|
|
|
09-12-2010, 01:31 PM
|
#4
|
|
adept
Join Date: Jun 2007
Posts: 1,091
|
Re: Table Counter AHK for PokerStars
I'll make use of this. Thank you.
|
|
|
09-17-2010, 12:24 AM
|
#5
|
|
newbie
Join Date: Sep 2007
Posts: 27
|
Re: Table Counter AHK for PokerStars
Anyway I can make the box a little bigger then its default size?
I changed the numbers on "W" and "H" to double on both - still doesnt do what id like. Want the number small - able to show any amount of numbers, etc. Possibly? I changed the part that I assumed was size (s20) but that didnt work either... let me know if its possible. Thanks.
Last edited by 4entourage; 09-17-2010 at 12:42 AM.
|
|
|
09-17-2010, 02:52 AM
|
#6
|
|
grinder
Join Date: Nov 2003
Location: British Columbia
Posts: 482
|
Re: Table Counter AHK for PokerStars
Should be able to just change the numbers of W and H, just make sure there's no space:
Gui, Show, W180 H130, Tbls
Try that. "S20" refers to the size of the font face. It should be able to display up to 99 tables fine (are you playing more than 99? eep).. works fine for me up to 20. If you still have clipping, change the "---" to like.. "-----" - that's just in place to make the text label spacer.
|
|
|
10-13-2010, 12:23 AM
|
#7
|
|
adept
Join Date: Apr 2010
Posts: 739
|
Re: Table Counter AHK for PokerStars
Would it be easy to get this to work for FT?
|
|
|
10-13-2010, 01:38 AM
|
#8
|
|
grinder
Join Date: Nov 2003
Location: British Columbia
Posts: 482
|
Re: Table Counter AHK for PokerStars
I am fiercely biased against FTP and won't have anything to do with them, sorry.
Someone else may be willing to take up the project, it shouldn't be hard.
|
|
|
10-13-2010, 06:21 AM
|
#9
|
|
journeyman
Join Date: Dec 2009
Posts: 386
|
Re: Table Counter AHK for PokerStars
Daxonovitch,
Just wanted to say thanks!
|
|
|
12-01-2010, 05:51 PM
|
#10
|
|
adept
Join Date: May 2010
Location: Welfare Office
Posts: 719
|
Re: Table Counter AHK for PokerStars
Nice scrip mate, cheers. Been on at TN to add something like this for ages and with the free beta version of hjalper being pulled this is a very needed addition.
|
|
|
12-02-2010, 12:20 AM
|
#11
|
|
grinder
Join Date: Nov 2003
Location: British Columbia
Posts: 482
|
Re: Table Counter AHK for PokerStars
No sweat, wayne. Now as soon as Stars makes it so you can see which tournaments in the lobby you're registered for, I'll be happy.
|
|
|
12-02-2010, 01:11 PM
|
#12
|
|
Pooh-Bah
Join Date: Jul 2005
Location: I just want the fish his money
Posts: 3,922
|
Re: Table Counter AHK for PokerStars
awesome.. thanks!!!
|
|
|
12-02-2010, 03:17 PM
|
#13
|
|
veteran
Join Date: Oct 2009
Location: repping SD value
Posts: 2,433
|
Re: Table Counter AHK for PokerStars
Please anyone tweak this a little so it counts all tables opened since running the script. I'd like to see how many SNG I've fired up during long sessions of continuous play.
Last edited by Baobhan-Sith; 12-02-2010 at 03:37 PM.
|
|
|
12-02-2010, 04:54 PM
|
#14
|
|
Pooh-Bah
Join Date: Jul 2005
Location: I just want the fish his money
Posts: 3,922
|
Re: Table Counter AHK for PokerStars
wouldnt HEM tell you this??? or TN???
|
|
|
12-02-2010, 05:13 PM
|
#15
|
|
journeyman
Join Date: Sep 2004
Location: #badbeats
Posts: 266
|
Re: Table Counter AHK for PokerStars
Quote:
Originally Posted by Baobhan-Sith
Please anyone tweak this a little so it counts all tables opened since running the script. I'd like to see how many SNG I've fired up during long sessions of continuous play.
|
Code:
#NoEnv
#SingleInstance force
#Include %a_scriptDir%
Process, priority, , High
SendMode Input
SetWorkingDir %a_scriptDir%
F8::
sngcount()
return
sngcount() {
; CurrentDate := ""
FileCount := 0
FormatTime, CurrentDate, A_Now, yyyyMMdd
;the trailing backslash MUST be included - since it's a folder
Folder1 := "C:\Users\Mike\AppData\Local\PokerStars\HandHistory\"
Folder2 := "C:\hhs\2010\"
Loop, 2
{
;the first value (0) means files only
;the second value (1) means include subfolders
Loop, % Folder%A_Index% . "*", 0, 1
{
if inStr(A_LoopFileName, CurrentDate)
{
FileCount++
}
}
}
setTrayTip("" . FileCount . " played. ")
}
RemoveTrayTip:
SetTimer, RemoveTrayTip, Off
TrayTip
return
setTrayTip(text, seconds=5, options=1) {
ms := seconds * 1000
TrayTip, Daily Tournament Counter, %text%, , %options%
SetTimer RemoveTrayTip, %ms%
return
}
Primitive, but works. Something I pieced together for a friend this past February. You're going to want to edit the hand history folders and possibly the hotkey.
Feel free to take this code and make it sexier, or include it as a function in another script.
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 02:38 PM.
|