SetFocus on Windows Virtual keyboard

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
MarcR
Newbie
Posts: 1
Joined: Wed Aug 24, 2011 1:35 pm

SetFocus on Windows Virtual keyboard

Post by MarcR » Wed Aug 24, 2011 1:46 pm

Hello,

I would like to know how/if it's possible to set focus on the Virtual Keyboard windows (Onscreen keyboard).

SetFocus function actually sets the focus on it, but it immediatelly loses it again to the previous active window.
I know it doesn't need to have the focus to accept keys, but I still need to get it focused.

Using MouseMove and Lclick on the windows title bar works. But I would like to avoid using MouseMove function for other practical reasons.

Any ideas or clues?

EDIT: It seems it's more a problem on virtual keyboard, and which windows gets the focus. I thought the last active windows would get the keyboard focus, but apparently not. Using SetFocus and MouseMove on several windows then switching back to VirtualKeyboard, then focus is set on the last active window MouseMove went. (Not sure if I'm understantable here :o)

Many thanks
Marc

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts