Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-18-2006, 02:04 PM
wildzer0 wildzer0 is offline
Senior Member
 
Join Date: May 2005
Location: Balmer, hon
Posts: 2,211
Default 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 ]
Reply With Quote
  #2  
Old 09-18-2006, 02:08 PM
poker_n00b poker_n00b is offline
Senior Member
 
Join Date: Nov 2005
Posts: 1,669
Default Re: Stars Buddy List AHK Script

it would be cool if it said which limit/table. i know hardcore geeks can program this.
Reply With Quote
  #3  
Old 09-18-2006, 02:09 PM
wildzer0 wildzer0 is offline
Senior Member
 
Join Date: May 2005
Location: Balmer, hon
Posts: 2,211
Default 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.
Reply With Quote
  #4  
Old 10-28-2006, 02:57 AM
snakekilla88 snakekilla88 is offline
Senior Member
 
Join Date: Jan 2006
Location: Donking it up
Posts: 4,622
Default Re: Stars Buddy List AHK Script

bump
Reply With Quote
  #5  
Old 10-28-2006, 09:50 AM
Wynton Wynton is offline
Senior Member
 
Join Date: Sep 2003
Location: coping with the apokerlypse
Posts: 5,123
Default 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?
Reply With Quote
  #6  
Old 10-28-2006, 12:38 PM
schwza schwza is offline
Senior Member
 
Join Date: Apr 2003
Location: get more chips than chips ahoy
Posts: 10,485
Default 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...
Reply With Quote
  #7  
Old 10-28-2006, 05:04 PM
TheIrishThug TheIrishThug is offline
Senior Member
 
Join Date: Jan 2005
Location: Belligerent and numerous
Posts: 1,819
Default 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.
Reply With Quote
  #8  
Old 10-31-2006, 06:14 PM
wildzer0 wildzer0 is offline
Senior Member
 
Join Date: May 2005
Location: Balmer, hon
Posts: 2,211
Default 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.
Reply With Quote
  #9  
Old 11-01-2006, 09:32 AM
Wynton Wynton is offline
Senior Member
 
Join Date: Sep 2003
Location: coping with the apokerlypse
Posts: 5,123
Default Re: Stars Buddy List AHK Script

Thanks, wildzer. Very helpful.
Reply With Quote
  #10  
Old 11-04-2006, 02:38 PM
udbrky udbrky is offline
Senior Member
 
Join Date: Oct 2005
Location: Having adventures 40 hrs/week
Posts: 1,008
Default Re: Stars Buddy List AHK Script

How do I save as a .ahk file? I keep getting .ahk.txt every time.
Reply With Quote
Reply


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 08:36 PM.


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