   Faking keyboard presses?
  Is there a way to make a program tell the computer that a key is pressed, even though it isn't?Thanks.-Nick   
  Yes, do it through Windows API.   ;  Since you gave us little information on the OS I'll assume windows...You'll likely want to use SendMessage()http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/messagesandmessagequeues/messagesandmessagequeuesreference/messagesandmessagequeuesfunctions/sendmessage.aspHope that helps.   ;  Online sample here:http://msdn2.microsoft.com/en-us/library/ms171548.aspx;  Thanks, I've gotten it working in general (I can send messages to calculator and VS.NET), however, I'm unable to send messages to the game I'm trying to connect my XBOX 360 controller to.  The game's called Maple Story.  I'm getting the handle correct, and it detects my button presses in code, but the game doesn't seem to respond.  Has anyone tried this?Sorry for my vagueness before.  I'm using C#, on Windows XP.-Nick   ;  MapleStory has tons of anti-cheating measures; your harmless (I assume) application is probably rendered useless through these.   ;  no windows messages, use keybd_event winapi calls. ;  I've tried keybd_event, and that gets me the same results as send and sendwait.  I need something lower level, that DirectX would pick up on.-Nick   ;  I'd imagine the Raw Input API is low-level enough, but it might be a little too low-level.  So, while I suggest it, I'm not going to recommend it.   