#1
|
|||
|
|||
Need help developing my idea.
Hello i am in the prossess of developing a software program that during a hand tells you what type of hand the player you are playing agasist plays in a certian situation. Basically the program will be you click a button and it will tell you other situations like th eone you are playing and what your opponent did (check, raise, ect). The only problem is i am unable to figure out how to extract the data from party poker on what the cards on the flop are and what the pre-flop cards are. If someone can help me with this please PM me or contact me on here. thanks
|
#2
|
|||
|
|||
Re: Need help developing my idea.
Not a programmer but it can be done, need to "scrape the screen" somehow.
I think there are past posts on this in the archive, try some searching. The winholdembot was able to do it so it might be worth getting that and looking at the background software in that, also do some googling on bots, there is a site that has on the results that two college teams had creating bots and some of the programming techniques used to scrape the screen. |
#3
|
|||
|
|||
Re: Need help developing my idea.
[ QUOTE ]
Not a programmer but it can be done, need to "scrape the screen" somehow. [/ QUOTE ] The observed hand history is written line by line as it happens, so you just need to open it as a stream and read. |
#4
|
|||
|
|||
Re: Need help developing my idea.
I've been shelling a notepad and copying text from there... what do you mean by opening as a stream?
|
#5
|
|||
|
|||
Re: Need help developing my idea.
[ QUOTE ]
I've been shelling a notepad and copying text from there... what do you mean by opening as a stream? [/ QUOTE ] Many languages open a text file once, and don't notice that it gets written to after they opened. You can however in those case specify that the file is a stream, so it checks continously to see if EOF moved. |
#6
|
|||
|
|||
Re: Need help developing my idea.
With party writing the Hand histories to files now, the absolute easiest way is to open a stream to that file and read from there, it appears to be written to the file real time. You can check this if you open the file in notepad in the middle of a hand. You will see the hand history up to the point you are currently in the hand.
The second easiest way is to use the SendMessage method of the Win32 API to get the text from the text area of the table where the hand history is written out. The third and hardest in my opinion would be to do a screen scrap and then determine what cards are on the flop etc. |
#7
|
|||
|
|||
Re: Need help developing my idea.
where is the observed history locaeted at?
|
#8
|
|||
|
|||
Re: Need help developing my idea.
The hand history files for tables you are currently playing on are stored in <install directory>\HandHistory\<user name>\<date>
Example : C:\Program Files\PartyPoker\HandHistory\MyUserName\20050301 The observed hand history files are stored during the observation in the <install directory> Example : C:\Program Files\PartyPoker\ They don't have really meaningful names. I have seen stuff like 801933.hh for the file names. |
#9
|
|||
|
|||
Re: Need help developing my idea.
thanks. When i go look at the file it says something like " Trny:10023599". how does this tourny relate to the real tourny #?
|
#10
|
|||
|
|||
Re: Need help developing my idea.
I don't think you can.
Why would you need observed hand history files anyways for what you are talking about doing? |
|
|