View Single Post
  #33  
Old 11-12-2007, 08:27 AM
Paxinor Paxinor is offline
Member
 
Join Date: Sep 2006
Posts: 87
Default Re: AH!, AHK just stopped working at Party!

ok i figured it out... they put " ' " separators in the handnumbers... strange...

if someone has the same problem:

in this part here.

if (fphg_uselive)
{
ControlGetText, handnum, Static11, ahk_id%id%
StringTrimLeft, handnum, handnum, InStr(handnum, "#")
StringReplace, handnum, handnum, `,,, All
StringReplace, handnum, handnum, .,, All
StringReplace, handnum, handnum, %A_SPACE%,, All
;Msgbox, %handnum%
hhf := fphg_party_hh_folder . "live\" . handnum . ".live"
}

;Msgbox %hhf%
FileRead, hh, %hhf%
if not ErrorLevel
{
ControlGetText, currenthand, Static11, ahk_id%id%
StringReplace, currenthand, currenthand, `,,, All
StringTrimLeft, currenthand, currenthand, InStr(currenthand, "#")
StringReplace, currenthand, currenthand, %A_SPACE%,, All
StringReplace, currenthand, currenthand,',, All

you have to put in the bold part...
Reply With Quote