1

Is there any existing class which can insert a predefined text after pressing a predefinded hotkey like ctrl + g? This should work when the application minimized, too.

Best regards,

Edit: Thanks for linking me this thread. Whenever i try to import this. I am getting this error: cannot access static enum member 'Control' in non-static context

Any help here?

user3850699
  • 65
  • 1
  • 5
  • Your question is unclear, where do you want to insert the text? Your form will only receive keypress events when it has focus, to receive other keypress events you would need to register a global hotkey. When it has focus, you just have to set the KeyPress property of the form to true and register the hotkey combination and the action you wish to take – barca_d Dec 17 '14 at 08:25
  • the text should be inserted like copy paste (ctrl + c and ctrl v) just using a predefined hotkey. – user3850699 Dec 17 '14 at 08:49
  • You should show some context. – Patrick Hofman Dec 17 '14 at 09:00
  • something like test-abd\test.abcd-adcs – user3850699 Dec 17 '14 at 09:16

0 Answers0