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

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 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.