Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Process mouse input without getting focus

Status
Not open for further replies.

mingis

Programmer
Jan 23, 2002
475
0
0
LT
I'm trying to develop a keyboard emulator, controlled by the mouse, but with only partial success. The first mouse click on my keyboard emulator window kills the focus of the keyboard receiving window. After returning the focus (SetForegroundWindow()) some programs lose possition of the cursor, so further keyboard input is impossible. Though I saw a keyboard emulator program, which allows to press virtual key buttons, without taking over the keyboard focus. How this is ever possible? Any ideas how to do that - preserve keyboard focus of one window when clicking mouse on another? I'm using standard Windows API environment.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top