How to focus any text control (system wide)

O

ozzy66

Hiho NG,

I've created a tool (tray application) like "keytext" or "shortcut"
that is a little tool where you can store text components which you can
call from any running app. Such a stored text will then be written on
any focused text control.

So far, so good. It works quite well. The tool is firstly hidden and
can be called by hotkey (F11). A list of stored text components appears
and the user can select one (or add new or change, delete etc.). After
a text component has been selected and the user clicks 'OK' my tool is
minimized and hidden again so the current focus returns to the app the
user has worked on before. But my tool assumes that the focus is
automatically given back to the former focussed text control. This
works with "normal" editors / text programs and almost all of the
textboxes for web apps - emphasis on 'almost'. It works NOT on web
controls in chats e. g. (I guess the focus is there firstly returned to
the web side or browser and not to the former focussed text control).

So the better way seems to be not to rely on 'system automatics
refocussing' ;). But the problem will probably be that the focus has
already been changed after my tool is called by hotkey. So how to find
out which text control has had the focus before?

yours
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top