Two Plus Two Newer Archives

Two Plus Two Newer Archives (http://archives1.twoplustwo.com/index.php)
-   Software (http://archives1.twoplustwo.com/forumdisplay.php?f=47)
-   -   Stars Buddy List AHK Script (http://archives1.twoplustwo.com/showthread.php?t=215035)

wildzer0 09-18-2006 02:04 PM

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 ]

poker_n00b 09-18-2006 02:08 PM

Re: Stars Buddy List AHK Script
 
it would be cool if it said which limit/table. i know hardcore geeks can program this.

wildzer0 09-18-2006 02:09 PM

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.

snakekilla88 10-28-2006 02:57 AM

Re: Stars Buddy List AHK Script
 
bump

Wynton 10-28-2006 09:50 AM

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?

schwza 10-28-2006 12:38 PM

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...

TheIrishThug 10-28-2006 05:04 PM

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.

wildzer0 10-31-2006 06:14 PM

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.

Wynton 11-01-2006 09:32 AM

Re: Stars Buddy List AHK Script
 
Thanks, wildzer. Very helpful.

udbrky 11-04-2006 02:38 PM

Re: Stars Buddy List AHK Script
 
How do I save as a .ahk file? I keep getting .ahk.txt every time.


All times are GMT -4. The time now is 12:25 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.