Open Side Menu Go to the Top

07-25-2009 , 01:43 AM
Hello,

First of, I hope this question fits in this forum. I'm posting this here because I know a lot of programmers frequent this forum but also because it seemed to fit in here best. If it doesn't, please move to the appropriate forum.

My question is, how would I go about coding a HUD? The stats have to be fixed on the table and must not be affected by mouse clicks/moves at all. It was suggested to me that I use API hooking, i.e. find the message that is fired when the table window is moved, then hook into that and update my stats window accordingly. I'm wondering if there are other, easier ways that don't involve API hooking?

I was thinking of going with C#, even though I hardly know it, because I will have to access windows and that all the time and I'm assuming a Microsoft language should make that pretty easy for me. What do you think about Java? I know it better, but if it's more complicated to use Java on that I might as well learn C#. What language would you use/suggest for coding a HUD?
Programming Question Quote
Programming Question
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
Programming Question
07-25-2009 , 04:24 AM
Anything but Java. C# is good.
Programming Question Quote
07-25-2009 , 04:29 AM
Quote:
Originally Posted by lolepicfailimo
My question is, how would I go about coding a HUD? The stats have to be fixed on the table and must not be affected by mouse clicks/moves at all. It was suggested to me that I use API hooking, i.e. find the message that is fired when the table window is moved, then hook into that and update my stats window accordingly. I'm wondering if there are other, easier ways that don't involve API hooking?
Look into Layered Windows.

Quote:
I was thinking of going with C#, even though I hardly know it, because I will have to access windows and that all the time and I'm assuming a Microsoft language should make that pretty easy for me. What do you think about Java? I know it better, but if it's more complicated to use Java on that I might as well learn C#. What language would you use/suggest for coding a HUD?
C/C++ will let you call the Win32 stuff directly.

Juk
Programming Question Quote
07-25-2009 , 07:46 PM
Also if you're like me and hate the win32 api, you could take a look at gtk. Then you need win32 or xlib only for finding the table window. Easy portability comes along.

You don't need the hooking api for doing a hud. You could just update the hud position from a timer and let the window manager take care of the stacking order.
Programming Question Quote
Programming Question
150% up to $2,000 Welcome Bonus on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
Programming Question

      
m