Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software

Reply
 
Thread Tools Display Modes
  #31  
Old 09-19-2007, 04:35 AM
highwayfrog highwayfrog is offline
Junior Member
 
Join Date: Sep 2006
Posts: 10
Default Re: PStars Grabber (New AHK script)

Hi.
I have a problem.
It says "Unterminated string in file C:\Documents and settings \Desktop\ps.auto3-new.txt,line9"

Can anybody help me?

Tx [img]/images/graemlins/confused.gif[/img]
Reply With Quote
  #32  
Old 09-20-2007, 04:20 PM
highwayfrog highwayfrog is offline
Junior Member
 
Join Date: Sep 2006
Posts: 10
Default Re: PStars Grabber (New AHK script)

Hi.
I made a copy of ur script to a notepad.
and I put my screenname on cfilename as u said.

; auto-execute

cIHH = Instant Hand History
cPSTable = Afx:400000:28:10011:0:01 ;table of hands in the IHH window
cSrch = `'
cFileName = C:\Program Files\PokerStars\HandHistory\goldfish1144\CurrData
cSleep = 600000 ;set to 10 min -- change the time interval here
lastGameID = 0


; start IHH grabber loop

loop
{
prevTableName:=
prevGameID:=
WinActivate, %cIHH%
Control,Choose,1,ComboBox1,%cIHH%
ControlFocus, %cPSTable%,%cIHH%
If (lastGameID = 0)
{
Send {PgUp 10}
}
else
{
GoSub FindLastGameID
}
FileID := A_Index
Loop
{
WinActivate, %cIHH%
ControlGetText,History,Edit2,%cIHH%
Loop, Parse, History, `n
{
IfEqual, A_Index,3, break
aHistData%A_Index% = %A_LoopField%
}
Pos := InStr(aHistData2,cSrch,0,0)
StringMid,TableName,aHistData2,8,(Pos-8)
StringMid,GameID,aHistData1,18,10
If (TableName = prevTableName) and (GameID = prevGameID)
break
prevTableName:= TableName
prevGameID:= GameID
FileAppend,
(
%History%
),%cFileName%%FileID%.txt
WinActivate, %cIHH%
ControlFocus, %cPSTable%,%cIHH%
Send {Down}
}
lastGameID := (prevGameID - 10000)
WinMinimizeAll
Sleep, %cSleep%

}
return



; Finds last hand from previous loop
FindLastGameID:
ControlGetText,History,Edit2,%cIHH%
StringMid,GameID,History,18,10
Loop
{
If (GameID > lastGameID)
{
Send {PgUp 4}
break
}
else
{
Send {PgDn 2}
ControlGetText,History,Edit2,%cIHH%
StringMid,GameID,History,18,10
}
}
return

--- END SCRIPT ---

Then I clicked autoit to open this script.
Autoit popup says "Unterminated string in file C:\Documents and settings \Desktop\ps.auto3-new.txt,line9"

Can anybody help me?

Tx
Reply With Quote
  #33  
Old 09-20-2007, 08:41 PM
HighSteaks HighSteaks is offline
Senior Member
 
Join Date: Aug 2006
Location: Australia
Posts: 658
Default Re: PStars Grabber (New AHK script)

Graycat=DOUBLEDRAG=Steamroller=goldfish1144 [img]/images/graemlins/laugh.gif[/img]
Reply With Quote
  #34  
Old 10-02-2007, 03:30 AM
highwayfrog highwayfrog is offline
Junior Member
 
Join Date: Sep 2006
Posts: 10
Default Re: PStars Grabber (New AHK script)

I'm not Graycat=DOUBLEDRAG=Steamroller.
i don't know u.
but i've been reading ur many helpful replies to other members.
i never expect this odd reply from u.
Reply With Quote
  #35  
Old 10-02-2007, 05:32 AM
HighSteaks HighSteaks is offline
Senior Member
 
Join Date: Aug 2006
Location: Australia
Posts: 658
Default Re: PStars Grabber (New AHK script)

It's a joke, might want to leave your screen name off lol.
Reply With Quote
  #36  
Old 10-02-2007, 04:27 PM
poker_n00b poker_n00b is offline
Senior Member
 
Join Date: Nov 2005
Posts: 1,669
Default Re: PStars Grabber (New AHK script)

in the instant hand history window: if you script grabs the same hand over and over, you need to unfocus the list menu by clicking on a hand, in a window below.

The script grabs everytime from the beginning. and then it creates multiple hh files for me. this is overkill. it should remember at which hand it stopped grabbing the previous cycle
Reply With Quote
  #37  
Old 10-05-2007, 06:36 AM
M4ST0R M4ST0R is offline
Junior Member
 
Join Date: Jun 2006
Posts: 2
Default Re: PStars Grabber (New AHK script)

[ QUOTE ]
in the instant hand history window: if you script grabs the same hand over and over, you need to unfocus the list menu by clicking on a hand, in a window below.

The script grabs everytime from the beginning. and then it creates multiple hh files for me. this is overkill. it should remember at which hand it stopped grabbing the previous cycle

[/ QUOTE ]
I've got the same problem.
Reply With Quote
  #38  
Old 10-26-2007, 05:54 PM
erazorXP erazorXP is offline
Junior Member
 
Join Date: Oct 2007
Posts: 12
Default Re: PStars Grabber (New AHK script)

I´ve modified the script a bit, and it seems that everything is working fine now, especially the "find last game" feature.

try this and tell me if works out for you.


[ QUOTE ]

; auto-execute

cIHH = Instant Hand History
cPSTable = Afx:400000:28:10013:0:01 ;table of hands in the IHH window
cSrch = `'
cFileName = C:\Program Files\PokerStars\HandHistory\xxx\CurrData
cSleep = 600000 ;set to 10 min -- change the time interval here
lastGameID = 0


; start IHH grabber loop

Process, priority, , High
loop
{
prevTableName:=
prevGameID:=
WinActivate, %cIHH%
Control,Choose,1,ComboBox1,%cIHH%
ControlFocus, %cPSTable%,%cIHH%
If (lastGameID = 0)
{
Send {PgUp 10}
}
else
{
GoSub FindLastGameID
}
FileID := A_Index
Loop
{
WinActivate, %cIHH%
ControlGetText,History,Edit2,%cIHH%
Loop, Parse, History, `n
{
IfEqual, A_Index,3, break
aHistData%A_Index% = %A_LoopField%
}
Pos := InStr(aHistData2,cSrch,0,0)
StringMid,TableName,aHistData2,8,(Pos-8)
StringMid,GameID,aHistData1,18,10
If (TableName = prevTableName) and (GameID = prevGameID)
break
prevTableName:= TableName
prevGameID:= GameID
FileAppend,
(
%History%
),%cFileName%%FileID%.txt
WinActivate, %cIHH%
ControlFocus, %cPSTable%,%cIHH%
Send {Down}
SetKeyDelay, 1
}
lastGameID := (prevGameID - 100)
WinMinimize, %cIHH%
Sleep, %cSleep%

}
return



; Finds last hand from previous loop
FindLastGameID:
ControlGetText,History,Edit2,%cIHH%
StringMid,GameID,History,18,10
Loop
{
If (GameID > lastGameID)
{
Send {PgUp 3}
break
}
else
{
Send {PgDn 2}
ControlGetText,History,Edit2,%cIHH%
StringMid,GameID,History,18,10
}
}
return



[/ QUOTE ]
Reply With Quote
  #39  
Old 10-29-2007, 02:16 PM
guillaumezur guillaumezur is offline
Senior Member
 
Join Date: May 2006
Posts: 176
Default Re: PStars Grabber (New AHK script)

does this one work for anyone? where does this write the hands ?

it seems to work on my computer but does not write anything
Reply With Quote
  #40  
Old 10-29-2007, 07:13 PM
erazorXP erazorXP is offline
Junior Member
 
Join Date: Oct 2007
Posts: 12
Default Re: PStars Grabber (New AHK script)

It should write the hands into your hand history folder as CurrData"x".txt ( "x" is a running number)
It is important that you replace "xxx" in this line with your exact Stars Screenname :
cFileName = C:\Program Files\PokerStars\HandHistory\xxx\CurrData
Reply With Quote
Reply

Thread Tools
Display Modes

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:51 AM.


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