VC++ 2012 am trying to press the same key in 3 different windows at the same time

I have 3 game clients open and I want to be able to simultaneously press the 1 key in all 3 windows and for the life of me I don't have enough information to do this yet.

You are generally better off not trying to fake input using WM_Keyxxx messages -- there is a lot of internal state that is difficult or impossible to emulate.
If you really want to use C++ you probably want to use
SendInput to generate the key messages.  The bigger challenge is getting the input focus to the right window.  SetForegroundWindow is pretty locked down these days.   You could use SendInput to fake mouse clicks to each of the windows
prior to generating the key stroke.
To be honest, based on the extremely limited description you have provided so far, I would use AutoHotkey's
ControlSend
command to solve this problem

Similar Messages

Maybe you are looking for

  • JSC doesn't show newly created extended DataProviders

    Hi, I've been using JSC and Hibernate for a project. According to Sun's how to using Hibernate + JSC (developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/hibernate.html) , I've created a wrapper class which extends ObjectListDataProv

  • LogFileNotFoundException from one index but not another in DPL

    Hi folks, I have an entity type in the DPL called an Item. It has various secondary keys. When I try to use the "type" of the item to get all items of a particular type, I get a LogFileNotFoundException (the log file is clearly gone, and we have no p

  • [Solved] 256 color term causes color glitch

    Hello, I'm having a strange (to me anyways) issue with 256 color terminals. The issue appears under xterm-256color and rvxt(-unicode)-256color, but not under any of the 8-color terminals I've tried. A bit of background, if it's relevant: this is my s

  • Contribute & Dreamweaver

    Hello - I run a small business and for years have edited my site in Dreamweaver. Currently, I have version 8 and have been using it for 10 months with no issues - in fact - I've never had any problems connecting to my server with DW. Recently, it has

  • Reformatting Drive, Reinstalling OS 10.4

    I'm wiping several machines clean and then re-installing the OS on the clean drive. No crashes, just some weird behavior, slow performance and, well, it's time. Haven't done this in a while. So some pointers, refreshers, please?Of course all relevant