![]() |
Stars Buddy List AHK Script
I thought some people here might be interested in this, I've been using it for a few days and it's helped me a lot. As anyone who plays on Stars knows, they don't have a buddy list, which can make tracking fish a pain. I wrote a very simple ahk script that will go through a list of players line by line and search for that player. If it finds any of them online, it writes their name to a textfile. So, if you have a file of players names like so:
[ QUOTE ] Player1 Player2 Player3 [/ QUOTE ] in c:\buddies.txt (you can change the script to reflect whatever file you want to use), the script will search for all their names on stars. If, for example, it finds Player2 is online, it will write their name to another text file (c:\onlinebuddies by default, but again, change it to whatever you want). It takes me about 3 minutes to search through about 200 names, then I just pop open the text file and I have an up to date list of who's online. I'm sure one of the AHK gurus here could have done a much better job, and this script is pretty primitive. But I thought I'd share it here in case anyone could use it. As usual, It works for me, I can't guarantee it will work for you. [ QUOTE ] #NoEnv #SingleInstance Ignore FileDelete, c:\onlinebuddies.txt Loop, Read, C:\buddies.txt { SetTitleMatchMode, 1 IfWinExist PokerStars Lobby { WinActivate } else return Send, !r Sleep, 10 Send, f {Enter} Send, %A_LoopReadLine% {Enter} Sleep, 1000 IfWinExist, PokerStars, Not Found { Send, {Enter} } else { FileAppend, ( %A_LoopReadLine% ), c:\onlinebuddies.txt Send, {Esc} } } [/ QUOTE ] |
Re: Stars Buddy List AHK Script
it would be cool if it said which limit/table. i know hardcore geeks can program this.
|
Re: Stars Buddy List AHK Script
[ QUOTE ]
it would be cool if it said which limit/table. i know hardcore geeks can program this. [/ QUOTE ] Yes, I agree. I couldn't figure it out. If anyone wants to improve this script it would be awesome. |
Re: Stars Buddy List AHK Script
bump
|
Re: Stars Buddy List AHK Script
I am so inept that I really need the instructions to start with...
(1) Turn on computer (2) Open file (3) replace/copy whatever Is anyone patient enough to translate the script for ssomeone like me? Or am I better off not even trying? |
Re: Stars Buddy List AHK Script
this looks very useful, but i am struggling to make it work. i am a total ahk noob, so you have to speak in small words. i have downloaded ahk and created a script with the text you wrote above, and i put a text file with buddies in the same place that you have it. i double-click the script and nothing seems to happen. no onlinebuddies.txt file is created, and the focus never even goes to the poker stars lobby.
any help would be appreciated, cause this thing looks great. edit: alright, figured it out. have to compile, then run... |
Re: Stars Buddy List AHK Script
[ QUOTE ]
edit: alright, figured it out. have to compile, then run... [/ QUOTE ] If you saved the file as a .ahk, it should run just by double clicking the script. Maybe you saved it as a txt file, ie the file name was buddy.ahk.txt This issue with finding the limit is that Stars only gives the table name and game type. So some one would have to do some work with searching thru the lobby text to find where the table is. |
Re: Stars Buddy List AHK Script
Hey, I was in AC for the weekend so I didn't see there was a little renewed interest in this. If anyone needs any more help with this, hit me up. I'd love to see some more work done on this, but honestly I'm probably not the one to do it, as I pretty much suck at AHK. Someone better than me probably could find limits buddies are playing, but it would involve searching through the table list, which I'm not sure how to do. But, I've been using it nearly every day since the day I posted it, and basically it works pretty well for narrowing down a list of say, 200 fish into a list of 20 online players.
I may try to put some more work into it today, because I can at least tell if the players are playing sngs, tournies or cash games, which is helpful. For Wynton: 1. Turn on computer. 2. Go to http://www.autohotkey.com 3. Download and install autohotkey software 4. Open a new text file on your desktop - name it buddies.ahk 5. Paste the text in my first post into it, save and close. 6. Open a new text file at c:\ - call it buddies.txt 7. Write a list of players you want to search for, one per line, into this file, save and close. 8. Double click buddies.ahk - wait until your computer stops going crazy (could be a while if it's a long list) 9. This created a new file at c:\onlinebuddies.txt 10. Open onlinebuddies.txt, this is a sublist of your big list containing the names of the people who are online. |
Re: Stars Buddy List AHK Script
Thanks, wildzer. Very helpful.
|
Re: Stars Buddy List AHK Script
How do I save as a .ahk file? I keep getting .ahk.txt every time.
|
Re: Stars Buddy List AHK Script
Can someone get the tables/limits on here?
|
Re: Stars Buddy List AHK Script
[ QUOTE ]
Can someone get the tables/limits on here? [/ QUOTE ] You're all welcome to try it out, AHK documentation is avalable at www.autohotkey.com. It's not too difficult and I'm sure someone with a little more time on their hands than I have at the moment could get something like this up pretty quick. |
Re: Stars Buddy List AHK Script
[ QUOTE ]
How do I save as a .ahk file? I keep getting .ahk.txt every time. [/ QUOTE ] When you are at the save menu, Make sure "Save as type:" is set to "All Files". The default is "Text Documents" and will tack on the .txt if the name you enter does not already end with one. |
Re: Stars Buddy List AHK Script
this is an awesome program, but i've started having some problems. sometimes the "find a tournament" choice gets picked instead of "find a player." sometimes it doesn't cause any problems, but sometimes every player after the incident gets written to the onlinebuddies.txt file. i have ~100 players in my buddy list. thanks!
|
Re: Stars Buddy List AHK Script
[ QUOTE ]
this is an awesome program, but i've started having some problems. sometimes the "find a tournament" choice gets picked instead of "find a player." sometimes it doesn't cause any problems, but sometimes every player after the incident gets written to the onlinebuddies.txt file. i have ~100 players in my buddy list. thanks! [/ QUOTE ] bump. thanks! |
Re: Stars Buddy List AHK Script
I've been playing a little bit with stuff like this, getting better incident handling in the script - because I've had pretty simliar problems. Right now the only advice I can offer is to monitor and click out of any unexpected windows asap. This weekend, I have a long plane ride, so I'll mess with the script some more and try to make some improvements. I guess there's a pretty awesome full tilt buddy list right now, so I'll try to steal some ideas from it [img]/images/graemlins/smile.gif[/img]
|
Re: Stars Buddy List AHK Script
ran stars, ran the script, compiled the buddylist correctly, but could not find : "c:\onlinebuddies.txt" and searched for "onlinebuddies" but comp came up with nothing
help is appreciated |
Re: Stars Buddy List AHK Script
Hey, didn't see your post for a few days, Reef. I'm a little confused - did you run the script before you made your buddy list? 2 possible explanations are that the script didn't find any buddies online (would happen if your buddies.txt file was empty when you ran the script or none of them were on and result in the file not being written) or your c:\ drive is named something different? You can edit the script to put the file anywhere you would like, so check the path and make sure it's ok.
|
Re: Stars Buddy List AHK Script
made the buddy list with about 100 names. Ran the script afterwards. I'll try it again and check the path. thx
|
Re: Stars Buddy List AHK Script
I was just messing around with my PT database this morning and came up with this query to generate a buddy list automatically. Here it is if anyone wants to use it - works on postgres. You can change the values in the HAVING clause - the first line is number of hands, then, VP%IP, then WTSD
[ QUOTE ] select players.screen_name as screenName FROM (game INNER JOIN game_players ON game.game_id = game_players.game_id INNER JOIN players ON game_players.real_player_id = players.player_id) GROUP BY players.screen_name HAVING (COUNT(game_players.game_id) > 100) AND (AVG(game_players.vol_put_money_in_pot) > .5) and (SUM (game_players.went_to_showdown_n) * 100 / SUM (game_players.saw_flop_n) > 33) ORDER BY (AVG(game_players.vol_put_money_in_pot)); [/ QUOTE ] |
Re: Stars Buddy List AHK Script
How do u run a query on PT database?
|
Re: Stars Buddy List AHK Script
|
Re: Stars Buddy List AHK Script
God, it would be amazing if this were slightly more sophisticated... i.e., showed which tables the fish were at, maybe even gave you a screen to open them.
|
Re: Stars Buddy List AHK Script
[ QUOTE ]
God, it would be amazing if this were slightly more sophisticated... i.e., showed which tables the fish were at, maybe even gave you a screen to open them. [/ QUOTE ] It would be, but unfortunately there is no way to read the "found player" box in autohotkey as far as I know. So I believe we're stuck with this pretty much the way it is. |
Re: Stars Buddy List AHK Script
I have no idea what I'm talking about.. but what if it just read the table name off of the lobby and looked for the player's name in that little window to the right?
|
Re: Stars Buddy List AHK Script
Hi.
I tried this script today but I canīt get it to work. The script searches the lobby at Stars (showing pop-ups saying "player XXX not found") for all the players in my list. I added a name from a player I knew was online, but the script still couldnīt find him. Ant ideas??? Sub qusetion: Would it be possibe to make something like this for the Cryptos? With their new software itīs a pain to find your buddies since the tables change places in the table list when players leave or join. They donīt have a "Find a player" function, but it would be nice just to know if my buddies are out there, and if thats the case I will look them up. As it is now I have to check every table and look at my hand drawn list of buddies and that takes a lot of time. // M |
Re: Stars Buddy List AHK Script
bump? is this the wrong thread or can someone make a diff stars buddy list. or more user friendly, gui or w/e its called.
|
Re: Stars Buddy List AHK Script
[ QUOTE ]
It would be, but unfortunately there is no way to read the "found player" box in autohotkey as far as I know. So I believe we're stuck with this pretty much the way it is. [/ QUOTE ] Yes there is: ControlGet, info, list,, ListBox1, % " Find Player" Msgbox % info The fact that Stars dialog titles start with a space is annoying... I wouldn't mind writing a quick gui for this, but there's no way to find out the LIMIT I'm afraid (unless someone feels like creating a database matching table names to limit). |
Re: Stars Buddy List AHK Script
roland i would pay you to make a successful GUI for it. someone make a DB with tables matching limits!!
|
Re: Stars Buddy List AHK Script
[ QUOTE ]
someone make a DB with tables matching limits!! [/ QUOTE ] Well - I thought about it a bit. I could just write a quick parser that goes through the processed hhs from PT or whatever hhs you have and matches limits to table names. Then we could even combine everbodies data I guess. Shouldn't be too hard. I'll take a stab at the gui. |
Re: Stars Buddy List AHK Script
[ QUOTE ]
[ QUOTE ] someone make a DB with tables matching limits!! [/ QUOTE ] Well - I thought about it a bit. I could just write a quick parser that goes through the processed hhs from PT or whatever hhs you have and matches limits to table names. Then we could even combine everbodies data I guess. Shouldn't be too hard. I'll take a stab at the gui. [/ QUOTE ] We can use postgres to get the table names (EDIT: and of course their associated limits) in to an easy to parse AHK variable: <font class="small">Code:</font><hr /><pre> #NoEnv #include postgres.ahk sql := "SELECT DISTINCT table_name, game_level_desc FROM game g, game_level gl" sql .= " WHERE g.game_level_id = gl.game_level_id AND g.site_id = 2" sql .= " ORDER BY table_name ASC" sql .= ";" result := psql(sql) Msgbox, %result% </pre><hr /> A different method needed for Access DBs tho... dave. |
Re: Stars Buddy List AHK Script
oooooo you guys are my heros.
|
v1.01
Here.
Works pretty well I think. I have a few more ideas, but too tired now. Oh yeah, stakes don't work yet of course. |
Re: Stars Buddy List AHK Script
[ QUOTE ]
We can use postgres to get the table names [/ QUOTE ] Cool. All we need is an .ini file tableX=$2/$4 etc... |
Re: Stars Buddy List AHK Script
[ QUOTE ]
[ QUOTE ] We can use postgres to get the table names [/ QUOTE ] Cool. All we need is an .ini file tableX=$2/$4 etc... [/ QUOTE ] I was thinking the script could just look up the stakes via postgres query when it finds a buddy online... I figure anyone playing for long enough to have a collection of "buddies" will have decent coverage of the table names in the stakes they play at, and a single file will all tablenames/stakes will be large... and can you have spaces in an ini key? I never tried that, I always assumed not (although I see nothing about this on the AHK pages at first glance) I was wondering about Access - but now I see on the PT forums all three variants can use Postgres [img]/images/graemlins/smile.gif[/img] Anyone using the omaha / stud version attest to stability (or lack thereof)? dave. |
Re: Stars Buddy List AHK Script
forget access just focus on the postgres lol. anyone who uses acess is oldschool. im going to test this out right now thoguh. thanks guys so far!!
|
Re: Stars Buddy List AHK Script
blah... error
http://img150.imageshack.us/img150/9...dylistfgn6.jpg thoughts? i am pretty sure i copied and pasted everything correctly. edit: if you were to delete the junk that comes at the top/beginning of the AHK scripts when you create a new file the error would be located at line 799. |
Re: Stars Buddy List AHK Script
Tcorbin16,
I have nothing looking like that code section anywhere near lines 813 or 799 in roland's functions.ahk... Did you update to the latest version? Maybe try downloading it from the "attachments" page rather than copy/paste (did you try this already)? dave. |
Re: Stars Buddy List AHK Script
ok dave i fixed the problem. i downloaded the most recent version of AHK. I think mine was outdated which was causing the problem. :-D
|
Re: Stars Buddy List AHK Script
Holy crap, I had no idea this thread was still around - Roland great job, and thanks for the tip about reading that find player message box, I didn't think it was possible.
|
| All times are GMT -4. The time now is 09:34 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.