Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-18-2005, 09:01 AM
12AX7 12AX7 is offline
Senior Member
 
Join Date: Jun 2004
Posts: 142
Default Where to Intercept Real Time Data on Windows?

Hi All,
I was thinking about how something like Poker Spy or some of these HUD programs might work that show the hole cards as soon as they are available in the hand history(?).

Anyone know how that data is intercepted?

Is it pulled from the TCP/IP connection? The file system, etc.? Perhaps there's some Windows event that can be programmed for?
Reply With Quote
  #2  
Old 11-18-2005, 09:30 AM
OrcaDK OrcaDK is offline
Member
 
Join Date: Nov 2004
Posts: 42
Default Re: Where to Intercept Real Time Data on Windows?

It's grabbed from the hand histories.
Reply With Quote
  #3  
Old 11-18-2005, 10:00 AM
12AX7 12AX7 is offline
Senior Member
 
Join Date: Jun 2004
Posts: 142
Default Re: Where to Intercept Real Time Data on Windows?

Hi OrcaDK,
Forgive my ignorance here. Haven't looked at things like MFC since 1994. LOL! I'm still stuck in the land of IBM 370 Assembler Language, MVS, Principles of Operations, and Structured Programming. (Can you say dinosaur? [img]/images/graemlins/laugh.gif[/img])

So is there some Windows event or something that let's me know the data has been written?

Just trying to visualize how to this would work.

Since it's coming from the hand histories, I'm speculating that you're telling me the data gets picked up from the hand history file after the update.

That of course, leads to the question, "How is notification of the update monitored?"

I was just guessing there was some Windows event that could be queued on?

Once I the program knows the data is available, then naturally I have to go get it and process it.

After that I guess I have to figure out how to display it.

Again I was guessing MFC (or Borland's version... OWL)?

Any idea how PERL might or might not fit into this?

Since you are the Guru of MTH, I have to believe you are the person to enlighten me.

I just noticed Express versions of Microsoft's Visual Studio are available. So I thought this might be an interesting way to try to start updating my knowledge of desktop tools.

A quick P.S. I noticed the Visual C++ Express does not include MFC. Know if that's a freely available download, or is this the catch to getting some revenue for old B.G.?

Apparently the othe Visual Express compilers have it, though.

Perhaps Visual Basic is a better choice?






Reply With Quote
  #4  
Old 11-18-2005, 10:01 AM
tigerite tigerite is offline
Senior Member
 
Join Date: Sep 2004
Posts: 360
Default Re: Where to Intercept Real Time Data on Windows?

There is a way of putting a watch on a folder, yeah. Look up WatchFolder on google, with C#. I wrote one for work not long back, they're really quite easy to make.
Reply With Quote
  #5  
Old 11-18-2005, 10:05 AM
OrcaDK OrcaDK is offline
Member
 
Join Date: Nov 2004
Posts: 42
Default Re: Where to Intercept Real Time Data on Windows?

Don't use MFC [img]/images/graemlins/smile.gif[/img] I'd suggest C#.
Reply With Quote
  #6  
Old 11-18-2005, 01:10 PM
MrMoo MrMoo is offline
Member
 
Join Date: Sep 2004
Posts: 43
Default Re: Where to Intercept Real Time Data on Windows?

Familiar with unix? Just write a program that will tail a file. You can run an endlees loop which continually reads the hand history file. Keep track of how far in you've read the file. Every loop, if file length is greater than how much you've read, grab the new data, reset your pointer and pass the new data off to whatever.
Reply With Quote
  #7  
Old 11-18-2005, 01:11 PM
tigerite tigerite is offline
Senior Member
 
Join Date: Sep 2004
Posts: 360
Default Re: Where to Intercept Real Time Data on Windows?

That would be terribly CPU-intensive, compared to just adding a watch to a folder.
Reply With Quote
Reply


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 10:34 PM.


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