Hi im trying to send a key to a game but it dosent work. i have tryed this

SendKeys.Send(X)
My.Computer.Keyboard.SendKeys(X)
System.Windows.Forms.SendKeys.Send("{X}")

It works in Windows but not in a game

This project might be of use.

Its for C# im using vb.net 2008

So? The only real difference between C# and VB.NET, is the syntax.
So, it's quite easy to translate between the two languages.
Especially if you use this as a tool.
You can post entire classes of code, and the converter translates them for you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.