Jump to content

How to stop focus changing to reactived app.


Recommended Posts

I have an on-screen keyboard for a touch screen. For most things it works ok.

When a key is not pressed the active window is noted provided it is not the keypad itself.

When a key is pressed the last active window is reactivated, and the key is sent.

It doesn't work for some situations. For example, if I want to rename a folder, then I click on the folder name to edit it, but when I press a key on the keypad the edit windows closes as soon as focus is taken away from it.

Similary with the task bar; I can bring it up but can't select anything with the keypad.

I can't see how to solve this unless I can prevent the focus transferring to my keypad.

I assume that a message is sent to set the focus, so can I intercept that and hijack it somehow?

Can anyone suggest how I can do that or how I should approach the problem?

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

If its on windows you could use the buildin native onscreen keyboard :)

Yes, that's what I'm trying to replace because the keys are a bit small for reliable use on a touch screen.

But how do they do it?

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...