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 08-22-2005, 09:25 AM
Zapp Zapp is offline
Senior Member
 
Join Date: Jun 2005
Posts: 363
Default Auto input Buddies (!!script update!!)

This script update increases performance (it's faster) and does a better job of handling clicking on another app while the script is running.

These first steps are the same as from the first post:

First thing you have to do is create a file that contains the screennames of all of the people you want to add to your buddy list.

You can create this list from Pokertracker. Here's how:
1. On the preferences tab select the criteria you want to use to identify your fishy buddies. I simply check the "Use player filter" box and select the Fish icon from the "Player Icon" drop-down list. (save)
2. On the Summary tab click the little blue P button (Print) above the list of players.
3. On the "Print - Player Performance Summary" dialog click "Export"
4. Make sure the only box checked is "Player | player_name"
5. Select file type "Comma Separated"
6. Uncheck the "Include Headers" box
7. Enter a filename to export (Example: fish.csv)
8. Click the "Export" button

Voila, file created.

Now run the below script and when prompted, enter the name of the file you just created (fish.csv)

You must save the script below (with a .vbs file extention) in the same directory as your fish.csv file.

!!Updated script below!!:
[ QUOTE ]

msgbox "If the Party Poker Buddy List is opened, close it now."
msgbox "Now click ""My Account - > Buddy List"" in Party Poker. Then click OK."
Const ForReading = 1
Const ForWriting = 2
Dim objFS
Dim objFle
dim count
Dim strCurrentLine
count = 0
Set objFS = CreateObject("Scripting.FileSystemObject")
Set objFle = objFS.OpenTextFile(InputBox("enter file name to import"), ForReading, True)
Set WshShell = CreateObject("WScript.Shell")
While Not objFle.AtEndOfStream
count = count + 1
strCurrentLine = objFle.ReadLine
while not wshshell.AppActivate("Buddy List")
wscript.sleep 10
wend
wshshell.SendKeys "{ENTER}"
while not wshshell.AppActivate("Buddy ID")
wscript.sleep 10
wend
wshshell.SendKeys strCurrentLine & "{ENTER}"
while (not wshshell.AppActivate("PokerNow.com")) _
and (not wshshell.AppActivate("MultiPoker.com")) _
and (not wshshell.AppActivate("PartyPoker.com")) _
and (not wshshell.AppActivate("IntertopsPoker")) _
and (not wshshell.AppActivate("Coral Eurobet Poker")) _
and (not wshshell.AppActivate("EmpirePoker"))
wscript.sleep 10
wend
wshshell.sendkeys "{ENTER}"
Wend
msgbox "Finished importing " & count & " names into the buddy list"


[/ QUOTE ]
Reply With Quote
  #2  
Old 08-22-2005, 10:34 PM
Zapp Zapp is offline
Senior Member
 
Join Date: Jun 2005
Posts: 363
Default Re: Auto input Buddies (!!script update!!)

Can anyone confirm that the script update has improved the import for them?
Reply With Quote
  #3  
Old 08-22-2005, 10:57 PM
effin_a effin_a is offline
Member
 
Join Date: Aug 2005
Posts: 48
Default Re: Auto input Buddies (!!script update!!)

Bigtime! Thank you sir!
Reply With Quote
  #4  
Old 09-12-2005, 01:15 AM
TonyM TonyM is offline
Member
 
Join Date: Aug 2005
Location: San Diego
Posts: 46
Default Re: Auto input Buddies (!!script update!!)

just used your script...wow...thanks so much !!!
Reply With Quote
  #5  
Old 09-14-2005, 02:58 PM
FrogMouth FrogMouth is offline
Senior Member
 
Join Date: Sep 2004
Location: Parts Unknown
Posts: 374
Default Re: Auto input Buddies (!!script update!!)

Sorry for the newbie question, what are you running the script with? Excel?
Reply With Quote
  #6  
Old 09-14-2005, 03:08 PM
A_K A_K is offline
Senior Member
 
Join Date: Jun 2005
Location: Colorado
Posts: 125
Default Re: Auto input Buddies (!!script update!!)

[ QUOTE ]
Sorry for the newbie question, what are you running the script with? Excel?

[/ QUOTE ]
I believe it runs in the Windows Scripting Host. Just follow his directions, save the .vbs file on your hard drive, double click on it, and windows will run it like any other program.
Reply With Quote
  #7  
Old 09-14-2005, 04:26 PM
Zapp Zapp is offline
Senior Member
 
Join Date: Jun 2005
Posts: 363
Default Re: Auto input Buddies (!!script update!!)

[ QUOTE ]
[ QUOTE ]
Sorry for the newbie question, what are you running the script with? Excel?

[/ QUOTE ]
I believe it runs in the Windows Scripting Host. Just follow his directions, save the .vbs file on your hard drive, double click on it, and windows will run it like any other program.

[/ QUOTE ]

Correct. I am including the script here again (no changes have been made) because I just noticed the "Code" tag that allows for indenting so that the code is more readable (for those of you who care).

<font class="small">Code:</font><hr /><pre>msgbox "If the Party Poker Buddy List is opened, close it now."
msgbox "Now click ""My Account - &gt; Buddy List"" in Party Poker. Then click OK."

Const ForReading = 1
Const ForWriting = 2

Dim objFS
Dim objFle
dim count
Dim strCurrentLine

count = 0

Set objFS = CreateObject("Scripting.FileSystemObject")
Set objFle = objFS.OpenTextFile(InputBox("enter file name to import"), ForReading, True)
Set WshShell = CreateObject("WScript.Shell")

While Not objFle.AtEndOfStream
count = count + 1
strCurrentLine = objFle.ReadLine
while not wshshell.AppActivate("Buddy List")
wscript.sleep 10
wend
wshshell.SendKeys "{ENTER}"
while not wshshell.AppActivate("Buddy ID")
wscript.sleep 10
wend
wshshell.SendKeys strCurrentLine &amp; "{ENTER}"
while (not wshshell.AppActivate("PokerNow.com")) _
and (not wshshell.AppActivate("MultiPoker.com")) _
and (not wshshell.AppActivate("PartyPoker.com")) _
and (not wshshell.AppActivate("IntertopsPoker")) _
and (not wshshell.AppActivate("Coral Eurobet Poker")) _
and (not wshshell.AppActivate("EmpirePoker"))
wscript.sleep 10
wend
wshshell.sendkeys "{ENTER}"
Wend

msgbox "Finished importing " &amp; count &amp; " names into the buddy list" </pre><hr />
Reply With Quote
  #8  
Old 09-14-2005, 04:30 PM
Lost Wages Lost Wages is offline
Senior Member
 
Join Date: Sep 2002
Location: My Lab
Posts: 2,725
Default Re: Auto input Buddies (!!script update!!)

What not just use BuddyCopy?

Lost Wages
Reply With Quote
  #9  
Old 09-14-2005, 05:50 PM
Zapp Zapp is offline
Senior Member
 
Join Date: Jun 2005
Posts: 363
Default Re: Auto input Buddies (!!script update!!)

[ QUOTE ]
What not just use BuddyCopy?



[/ QUOTE ]

The script I wrote imports the names into the buddy list much faster than BuddyCopy. That said, I think the features in BuddyCopy are excellent and would use it instead of my script if it were faster at doing the actual import.

I would also like to see buddy importing capabilities added to PokerGrapher since there is already an interface to identify buddies. That would make the process super slick. Just identify buddies in PokerGrapher, click a button and voila, the names are imported into your party skin.
Reply With Quote
  #10  
Old 09-14-2005, 07:21 PM
gasoltub gasoltub is offline
Senior Member
 
Join Date: Jan 2005
Location: 2/4 SH
Posts: 1,049
Default Re: Auto input Buddies (!!script update!!)

Is your script faster than BuddyCopy 1.0? I know the first version (0.2) was slow but the last one is faster.
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 11:21 PM.


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