c# - How to write text to an external application -


i'm developing application user write common text faster.

what have in mind windows app user can configure key combinations, when he's, instance, writing email on outlook or gmail, has press keys , text configured before pasted whatever app he's using.

so, instead of user having write "dear sir, order has been received succesfully" every time receives order , wants send confirmation email, press "crtl + o + r", , corresponding text written him.

i think in order achieve app has 2 things:

  1. intercept key combination pressed buy user when he's focused on different app.
  2. "paste" corresponding text app.

i have no real clue on how achieve this, because app doing "pasting" text on app (otlook, word, notepad or whatever thing user can type into), replacing short text user wrote long text defined.

any suggestions? i've looked hot keys, i'm not sure they're way go, , have no idea on how "paste" new text.

thanks.

have considered adding text clipboard? show text next button says "copy clipboard", , user can grab , click ctrl-v.

can't think of windows app way, know it's possible; heck, bit.ly can browser.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -