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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

keep focus on a target application for an on screen keyboard

Status
Not open for further replies.

CubeE101

Programmer
Nov 19, 2002
1,492
US
I would like to make a small "onscreen keyboard" type app to use with my Wacom Tablet in a CAD program.

I would also be adding some extra features specifically for that program, which is why I don't want to use the XP on screen KB.

How can you keep the focus on the target app when you click a button? (such as XP's on screen keyboard)

..and I assume you would use SendMessage to send the key strokes to the app...?

Thanks in advance,
-Josh

Have Fun, Be Young... Code BASIC
-Josh
cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
Thanks for the post, but I don't think that is exactly what I am looking for...

That restricts the cursor to your application...

I want my application to be visible (well maybe transparent ;-)) and on top, but I want the Focus to remain on the last active application...

When a window in Windows gets Focus (or becomes Active) the title bar and/or frame (depending on your version and config of windows) becomes highlighted...

I want my application to be clickable, so you can press the buttons on it to preform the task, but I want the Target app to remain active, not my application.

As I mentioned above, the On-Screen Keyboard that comes with Windows XP, under:
Start>Accessories>Accessability

Is a perfect example of the type of application I am aiming for...

When you launch the program, it comes up but is deactivated...

When you press a button, a keystroke is sent to the active application in the background (behind the Keyboard), and the keyboard itself remains inactive.

Have Fun, Be Young... Code BASIC
-Josh
cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top