Open Side Menu Go to the Top
Register
NEW AHK: Stars Buddy List (for new client) NEW AHK: Stars Buddy List (for new client)

12-05-2008 , 12:58 AM
Unable to do much with the old script since the player names cannot be grabbed from the new style "find a player" results dialog, I wrote a nice new script


Download it here: http://www.overcards.com/wiki/moin.cgi/StarsBuddyList

direct: http://www.overcards.com/wiki/moin.c...yList-v0.1.zip


I'll edit in some screenshots or something later, getting tired now...

It gives a few of useful additions:
  • When playing at a table, CTRL+Right click a player, Search for them.
  • When playing at a table, CTRL+Right click a player, Add them to buddy list
  • At any time, right click the tray icon to search for all buddies.


Extract the zip file to a folder, run the script. You can't use a "no images" theme or the player boxes won't line up properly for now - this will be added easy enough - just edit the layout file for correct x/y coordinates - I think there is a set in the StarsReads thread already if anyone feels the need

If you got Vista, you may need to copy your user.ini file to the program files\pokerstars folder for preferred seating detection to work properly (or edit the paths in the script). If you got an awkward screenname (with spaces and/or unusual characters) you may need to do some editing also if it can't find your hand history files. Post if you are having difficulties.

Enjoy,

dave.
NEW AHK: Stars Buddy List (for new client) Quote
12-05-2008 , 02:31 AM
Thank you!!!
NEW AHK: Stars Buddy List (for new client) Quote
12-05-2008 , 09:48 AM
I got no GUI when running the script, and no options in the Tray > Right Click to restore the GUI or do anything useful.
NEW AHK: Stars Buddy List (for new client) Quote
12-05-2008 , 12:46 PM
There is no gui - not much use for one now, it uses Stars own for search results.

You should get a "search all buddies" in the tray menu, and a little menu when right clicking a player at a table (you need to be playing).

You'll need to add some buddies (or copy/paste buddies.txt from the old script) before "search all buddies" will do anything useful however.
NEW AHK: Stars Buddy List (for new client) Quote
12-05-2008 , 01:02 PM
I will look at it later. About to reformat for the 2nd time today, cuz I had my slave IDE drive plugged in and the OS disc reformatted the wrong drive. I might a need a little help getting my D:\PostgreSQL\8.3 (and 8.2) working again, if it's possible. I am not opposed to reimporting everything again tho. I have a fear I may need a new PC, and really cant afford one right now.

I guess if all else fails with this drive I can run my OS/Apps on that old 50Gb drive I just formatted by accident.
NEW AHK: Stars Buddy List (for new client) Quote
12-05-2008 , 03:56 PM
how does this thing work? im confused

it seems like ideally we would have a .txt file and an AHK script that automatically searched for every name in the text file. with stars' new search thing we could easily click the table they were on etc.
NEW AHK: Stars Buddy List (for new client) Quote
12-05-2008 , 04:03 PM
Quote:
Originally Posted by bengiec
how does this thing work? im confused

it seems like ideally we would have a .txt file and an AHK script that automatically searched for every name in the text file. with stars' new search thing we could easily click the table they were on etc.
That's exactly how it works

I should have included some "buddies" by default, it was late. it reads from a file called buddies.txt in the same folder as the script, which need be a newline seperated text file of screen names. You can make this file yourself (via database queries, notepad, whatever) - or CTRL + right click on someone you are playing with and it will add them to the file itself.

Then do right click -> "search all buddies" on the script's tray icon and it will read thru the buddies.txt file populating Stars "find a player" window with results, or at least it should

dave.
NEW AHK: Stars Buddy List (for new client) Quote
12-05-2008 , 05:08 PM
oh _dave_ you've done it again <3
NEW AHK: Stars Buddy List (for new client) Quote
12-05-2008 , 07:04 PM
Hi dave,
getting the screenname is much more easy by using the Notes. No need to look into hand histories and therefore no need to be seated. Also, no need for the layouts.
Code:
mousegetpos , , , id
click 2
controlgettext , playername , Edit1, ahk_id%id%
You can shorten the script to under 100 lines. Like this:
Code:
; by _dave_ - CTRL + RightClick on a player, or right click the tray icon to search

#NoEnv
#SingleInstance, Force
SendMode Input
GroupAdd, StarsTables, ahk_class PokerStarsTableFrameClass,,, PokerStars Lobby
Menu, menu1, Add, test
Menu, Tray, Add, Find Buddies, allbuddies
return
F1::gosub allbuddies
return
^RButton::
mousegetpos , , , id
IfWinExist, ahk_id%id% ahk_group StarsTables
{
click 2
controlgettext , playername , Edit1, ahk_id%id%
if (playername)
  {
    Menu, menu1, Delete
    Menu, menu1, Add, Search for %playername%, searchplayer
    Menu, menu1, Add, Buddylist  %playername%, searchplayer
    Menu, menu1, Show
  }
}
return

searchplayer:

if (A_ThisMenuItemPos = 2)
{
  FileAppend, %playername%`n, buddies.txt 
}
else
{
  ;msgbox %playername%
  WinGet, ps_id, id, PokerStars Lobby
  Winget, ps_pid, pid, ahk_id%ps_id%
  WinMenuSelectItem, ahk_id%ps_id%,, Requests,Find a Player...
  WinWait,Find a Player ahk_pid%ps_pid%,,2
  WinGet, playerwin, id,Find a Player ahk_class #32770 ahk_pid%ps_pid%
  if (!playerwin)
  {
    return
  }
  
   
   Send , %playername% {Enter}
  ;msgbox %playerwin%
  Sleep, 200
  WinWait,Find a Player ahk_pid%ps_pid%,,2
  
  WinGet, playerwin, id,Find a Player ahk_class #32770 ahk_pid%ps_pid%
  if (playerwin)
  {
    WinGet, clist, ControlList, ahk_id%id%
    if (InStr(clist, "Remove From List"))
    {
      ControlSend, Cancel, {SPACE}, ahk_id%playerwin%
  
    }
    else
    {
      sleep, 200
    }
  }
}
return


test:
return


allbuddies:
WinGet, ps_id, id, PokerStars Lobby
Winget, ps_pid, pid, ahk_id%ps_id%
FileRead, buddies, buddies.txt
Loop, Parse, buddies, `n
{
  playername := A_LoopField
  gosub searchplayer
}    
return

Last edited by rubbishaka80; 12-05-2008 at 07:11 PM.
NEW AHK: Stars Buddy List (for new client) Quote
12-05-2008 , 07:12 PM
interesting, thanks.

dunno about doing away with the layouts tho, although I can't see much of a worry sending double clicks to other areas of the client right now... tbh tho I pretty much just copy/pasted all the hh grabbing stuff from StarsReads
NEW AHK: Stars Buddy List (for new client) Quote
12-06-2008 , 12:54 AM
I want to have your baby

Im not joking

NEW AHK: Stars Buddy List (for new client) Quote
12-09-2008 , 03:59 PM
Quote:
Originally Posted by LawJik
Thank you!!!
+5k

I still haven't been able to tell if the whole CTRL+Right Click is working. I haven't seem to be able to add anyone to list or search right away by doing this?!? But I can search my "buddies" file by using the tray icon!?!
NEW AHK: Stars Buddy List (for new client) Quote
12-09-2008 , 04:10 PM
nvm working great !!
NEW AHK: Stars Buddy List (for new client) Quote
12-09-2008 , 04:14 PM
Table themes keeps popping up when I right click for my BetPot Script?!?
NEW AHK: Stars Buddy List (for new client) Quote
12-09-2008 , 04:49 PM
Check the betpot thread for ways to get around it, for now, until he edits the script properly.
NEW AHK: Stars Buddy List (for new client) Quote
12-09-2008 , 08:42 PM
i noticed when the AHK searches for ppl on stars it puts a little square at the end of each persons name. i think this prevents it from accurately searching.
NEW AHK: Stars Buddy List (for new client) Quote
12-09-2008 , 09:01 PM
Quote:
Originally Posted by bengiec
i noticed when the AHK searches for ppl on stars it puts a little square at the end of each persons name. i think this prevents it from accurately searching.
This sounds like your buddies.txt has got strange newlines... does it look OK if you open it in notepad?
NEW AHK: Stars Buddy List (for new client) Quote
12-10-2008 , 07:09 AM
I have the same problem with the square behind the name. How is the buddy list supposed to look? I use a new line for every new buddy.
NEW AHK: Stars Buddy List (for new client) Quote
12-10-2008 , 01:29 PM
Quote:
Originally Posted by _dave_
This sounds like your buddies.txt has got strange newlines... does it look OK if you open it in notepad?
it looks like this:

player1
player2
player3
player4
player5
etc


i thought it might of been bc of spaces after the names but its not
NEW AHK: Stars Buddy List (for new client) Quote
12-10-2008 , 01:29 PM
it is supposed to look like that, a plain text file with a newline between each buddy.

I'll put up a new version later to try and check/fix this.

If one of you could zip up your buddies.txt file (or a small sample of it, or a fake one with fake names, whatever) - and put it somewhere I can download it, that would be a great help, then I can see these extraneous squares for myself.
NEW AHK: Stars Buddy List (for new client) Quote
12-10-2008 , 09:44 PM
Dave can you set the script to search the first name of every line??? (so we can write some info about the opponent near of him)
NEW AHK: Stars Buddy List (for new client) Quote
12-11-2008 , 05:27 PM
Anyone get this working with Vista?
NEW AHK: Stars Buddy List (for new client) Quote
12-11-2008 , 06:36 PM
I can get it to run the search, but nothing happens. I put people I manually searched for in buddies.txt and it looks like its working, but once it goes through my list nothing happens? Also Ctrl Right Click does not work at all.
NEW AHK: Stars Buddy List (for new client) Quote
12-12-2008 , 07:17 PM
I'm not yet able to try this, but THANK YOU VERY MUCH for all the work you've put into this everthing else!
NEW AHK: Stars Buddy List (for new client) Quote
12-17-2008 , 08:55 AM
did this get forgotten about ? dave u get my pm ?
NEW AHK: Stars Buddy List (for new client) Quote

      
m