C/C++ : output string to any other program which owns the active cursor -



C/C++ : output string to any other program which owns the active cursor -

i have android device , have connected pc using adb, , android device acts server while pc acts client (communicate tcp).

when android device outputs characters, english language words , chinese words considered, pc can obtain characters , output onto programme active cursor.

my pc app written c/c++. way, if outputs 1 english language letter, can simulate key_press event , method doesn't work on chinese letter.

(output 'a' -> pc catches -> simulate press 'a' key -> can output programme active cursor)

now want way output string (not letter) other programme owns active cursor.

the process like:

(android outputs 'hello world' -> pc catches 'hello world' -> outputs programme owns active cursor)

one more thing, 'owns active cursor' means waiting editing. (when edit ms word file, file waiting editing , owns active cursor also)

it sounds function looking sendinput.

depending on sort of keystrokes need inject, , need inject them, text-injection code might need run within high-integrity process -- linked page: "this function subject uipi. applications permitted inject input applications @ equal or lesser integrity level."

(note in particular "uiaccess ui automation applications" section in sec linked article)

c++

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -