I have an application that types at the point of the mouse; even if that means switching the focus of the window to some other program, such as notepad.
I am trying to press a key combination to start / stop input.
How can I do it?
you should use Keyboard hooks, you can find many examples by doing a search.
here is an example from codeproject.com:
keyboardhook.aspx
Source: https://habr.com/ru/post/905347/More articles:Texture showing a circle made using GL_POLYGON - openglHow to implement a simple button in PyQt - pythonSome Simple Ruby Questions - Iterators, Blocks, and Symbols - ruby ββ| fooobar.comHow to get a specific Count element in an XML variable - xmlUsing hoverIntent with .on or delgate - javascriptDownload jQuery on the fly - javascriptBig Generator 0 Heap in .NET, wasting memory? - memory-managementhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/905350/server-mode-gc-seems-to-never-collect-gen-0-heap&usg=ALkJrhhcCDqW3n2yLfJ89CjF93xuwDm0RwVertical progress bar in android - androidhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/905352/is-there-a-way-to-grant-all-privileges-to-the-same-user-from-multiple-lan-addresses-in-a-single-command&usg=ALkJrhjlKT_rNheELtRaZRLOmDrTHGuHewAll Articles