Program like Steam ?!

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
8 posts Page 1 of 1
Contributors
User avatar
PayneStudios
Dedicated Member
Dedicated Member
Posts: 66
Joined: Thu Sep 15, 2011 2:05 pm

Program like Steam ?!
PayneStudios
Hey Guys,
i just wonna do a little Application for Minecraft so i can Browser in the Internet while playing, i wonna do a App like Steam.
When i press SHIFT+TAB it opens the Program and the Window is over the Game Window.
I used the TopMost Function and it was Okay so far, i tryd some Codes for the Keypress and Window over Window but nothing seems to work anyway, i am always getting a Error about the API Function in Visual Basic.

Someone know some Code for that ?!
Also is it possible to draw a Text directly on to a Position in the Game ?

Greetz PayneStudios
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Program like Steam ?!
Axel
This is harder than you might think, it involves dll injection, lots of directX, winapi shizzle
I think this would be a hard thing to do in visual basic though
I'd google this : "Create overlay VB.NET" or something similair
If you'd try the dll injection method, I think it will be a pain in the arse to keep the game running, since there is lots of hack protection in games nowadays...

But hey I barely know anything about this

Btw, you can draw on a window by drawing on Graphics.FromHwnd(handle), but I don't know if this works for directX/opengl windows too
http://vagex.com/?ref=25000
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

Re: Program like Steam ?!
MrAksel
GDI and OpenGL is not ment to be together, at all, but I have no idea about DX. I'd guess it will cause much flicker. Minecraft uses OpenGL so it will flicker ALOT when you draw text to the window.
You could use GetAsyncKeyState for hotkeys.
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Program like Steam ?!
Axel
lol the getasynckeystate, I'd rather hook the keys instead...
http://vagex.com/?ref=25000
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

Re: Program like Steam ?!
MrAksel
That would be an option, but its more advanced.
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
User avatar
PayneStudios
Dedicated Member
Dedicated Member
Posts: 66
Joined: Thu Sep 15, 2011 2:05 pm

Re: Program like Steam ?!
PayneStudios
Ok i will try that with Graphics and see how it looks.
Someone know some good Code for the GetaSyncKeyState ?
I tryd something from the Internet, but it doesnt seem to work anyway.
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Program like Steam ?!
mandai
Here is an example that uses GetAsyncKeyState: viewtopic.php?f=32&t=4958&p=37340#p37340

You might also want to look at RegisterHotKey as well: viewtopic.php?f=32&t=7564&p=55922#p56005
User avatar
PayneStudios
Dedicated Member
Dedicated Member
Posts: 66
Joined: Thu Sep 15, 2011 2:05 pm

Re: Program like Steam ?!
PayneStudios
Ok thanks Bro
8 posts Page 1 of 1
Return to “Coding Help & Support”