#31
|
|||
|
|||
Re: ColoredStacks Problem
Okay people - I figured out why it's not working with the regular Party hhs. For whatever reason Party are adding a binary zero at the end of every hh, so AHK can't read further than the first hh. I found a work around, but it's too slow. It doesn't matter though, since we have FPHG [img]/images/graemlins/smile.gif[/img]
|
#32
|
|||
|
|||
Re: ColoredStacks Problem
[ QUOTE ]
yes, C:\FreePHG_HandHistories [/ QUOTE ] I don't know what's wrong then. Try a different table or something. Edit: Are you running FPHG with the default settings? |
#33
|
|||
|
|||
Re: ColoredStacks Problem
I just put up a new version, which should be less confusing to use. Also uploaded my functions again, I'm not sure if I changed anything.
Toasta, try downloading everything again. |
#34
|
|||
|
|||
Re: ColoredStacks Problem
woho \o/ works perfect now, big thanks roland [img]/images/graemlins/smile.gif[/img]
|
#35
|
|||
|
|||
Re: ColoredStacks Problem
i'm getting the
Error at line 191 Line Text: Convert(show) Error: Duplicate function Defintion I've got FPHG running, latest functions and latest colored stacks code. |
#36
|
|||
|
|||
Re: ColoredStacks Problem
[ QUOTE ]
Okay people - I figured out why it's not working with the regular Party hhs. For whatever reason Party are adding a binary zero at the end of every hh, so AHK can't read further than the first hh. I found a work around, but it's too slow. It doesn't matter though, since we have FPHG [img]/images/graemlins/smile.gif[/img] [/ QUOTE ]Don't know if this is similar to the workaround you were referring to, but here's what I did in the BigPotGrabber script to get around this issue: <font class="small">Code:</font><hr /><pre> ;---- read content of file and split into individual hands ;since Party separates the hands by writing a NULL character, we need to replace those characters in memory. ;(see http://www.autohotkey.com/forum/view...?p=91578#91578) file = %partyHistoryPath%\%A_LoopField% SetBatchLines, -1 ; Run at top speed! FileGetSize, dataSz , %file% ; StrLen() will not work with binary data FileRead , binData , %file% ; Read the whole binary file into a variable Pointer := &binData Loop, %dataSz% ;Parse the binary data for NULL terminator If ( *(Pointer+(A_Index-1)) = 0 ) ; If Chr(0) found replace it with Chr(167)/§ DllCall( "RtlFillMemory", UInt, Pointer+(A_Index-1), Int,1, UChar,167 ) StringSplit, hand, binData, §</pre><hr /> Don't know if it'll be fast enough for real-time use, as the script I used it in works in longer intervals. Just thought I'd throw it out there [img]/images/graemlins/smile.gif[/img]. |
#37
|
|||
|
|||
Re: ColoredStacks Problem
Yeah, that's what I did too - even used the same replacement char as you (§) [img]/images/graemlins/smile.gif[/img]
Skans stuff is just amazingly good, isn't it? It does work pretty well, and if there was no other option I'd use it; it would probably be quite okay actually if you move the files every 5 minutes or so. But luckily we have FPHG [img]/images/graemlins/smile.gif[/img] Thanks for sharing, in any case. |
#38
|
|||
|
|||
Re: ColoredStacks Problem
[ QUOTE ]
i'm getting the Error at line 191 Line Text: Convert(show) Error: Duplicate function Defintion I've got FPHG running, latest functions and latest colored stacks code. [/ QUOTE ] Try deleting the whole folder and downloading again.... |
|
|