#11
|
|||
|
|||
Re: $$$ for a HH file splitter (like the one PT has)
[ QUOTE ]
I recently bought a 17" Sony Vaio laptop with WUXGA (1920x1200) [/ QUOTE ] Sweet... I [img]/images/graemlins/heart.gif[/img] Sony laptops. [ QUOTE ] that comes with a free Vista upgrade. [/ QUOTE ] Here in the UK they want to charge a $19 "shipping fee" for the "free" upgrade to Vista, and it only upgrades to the lame Standard version [img]/images/graemlins/frown.gif[/img] |
#12
|
|||
|
|||
Re: $$$ for a HH file splitter (like the one PT has)
Hey Dave, how would I edit the script so that it doesn't ask for folders. Rather, I'd like it to just detect all text files in the current directory, and then automatically create a new directory (maybe HHSplitter or something), and place all of the new text files in there.
|
#13
|
|||
|
|||
Re: $$$ for a HH file splitter (like the one PT has)
Hey Dave, I sometimes get the following error:
|
#14
|
|||
|
|||
Re: $$$ for a HH file splitter (like the one PT has)
I tried using this for my stars histories and it just split it into one large file with no breaks between the hands. Any help?
|
#15
|
|||
|
|||
Re: $$$ for a HH file splitter (like the one PT has)
[ QUOTE ]
Just Copy/Paste, save & run. It will ask you for an input folder and an output folder. Take care with output folder - Make sure it's empty, preferably new folder - there is no checking if files are already present before writing output. It will tell you how many hands processed when finished. You can specify Hands per file output at the top of this script. StarsHandHistorySplitter.ahk <font class="small">Code:</font><hr /><pre> ;------------------------------------------------------------------------------ #NoEnv #MaxMem 1024 HandsPerFile := 100 dlim := "PokerStars Game #" ;SetBatchLines, -1 AllHands := "" FileSelectFolder, InputFolder, , , Select the Folder of Hand Histories if (!ErrorLevel) { FileSelectFolder, OutputFolder, , , Select the Folder to Save Output if (!ErrorLevel) { Loop, %InputFolder%\*.txt { tmp := "" FileRead, tmp, %A_LoopFileFullPath% AllHands := AllHands . tmp } StringReplace, AllHands, AllHands, %dlim%, µ, All StringSplit, hands, AllHands, µ OutFile := OutputFolder . "\Hands_" Loop, %hands0% { OutFileName := OutFile . Floor((A_Index / HandsPerFile)) . ".txt" data := dlim . hands%A_Index% FileAppend, %data%, %OutFileName% } MsgBox, %hands0% Hands Processed. } } ;------------------------------------------------------------------------------ </pre><hr /> Enjoy, dave. [/ QUOTE ] I did everything exactly as you said Dave. Copied and pasted exactly. But when I try to split my pokerstars hand histories, I get one large notepad file with not breaks between the hands. Could anyone help out, please? It's a pain having to use pokertracker's splitter. |
#16
|
|||
|
|||
Re: $$$ for a HH file splitter (like the one PT has)
[ QUOTE ]
Get at least 1GB RAM (as fast as you can afford), preferably 2GB. If budget is a concern I'd prefer 1GB of super-fast RAM over 2GB of standard stuff. [/ QUOTE ] Sorry for the thread hijack for a really old response but this caught my eye. Is faster memory really so good that this is the better way to go? I usually get quality components but admit to purchasing Kingston's Valueram or a similar offering from Crucial. I figured sticking with a major vendor should keep it decent. No? |
|
|