May 2nd, 2011, 05:45 PM
how simulate keyboard and mouse whilst in game?
hi i am trying to make a program that whilst ingame (magicka if anyone is interested) reads what is pressed on the keyboard and the simulates a combination of keyboard key down and keyboar key up and mouse press.
eg if i press NumPad0 it would simulate Key Press A, Key Press S, Key Press F
or if i press NumPad1 it would simulate Shift Down, LButton Press, Shift Up
i have already managed to read what is pressed on the keyboard and know just need to know how to simulate pressing my combination
i have read about DirectX's SendInput and other stuff but was wondering what is the best way to do this so the game will read what inputs i have pressed? and also if anyone has any good tutorials/help sites they can link me to!
Thanks in advance =)
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!