Why would you need to write a program for this? There are any number of programs already out there that perform functions similar to the Poker Genie.
Personally, I use a PC connected to the TV for just this running
PokerDIY locally (offline). If I have multiple tables or multiple rooms, I use a second PC running
TeamViewer to display the desktop and audio in another room.
Dave