The Keyboard class provides different methods with which you can send
texts or key codes to the UI element currently selected. Some of these
methods also allow the use of modifier keys like Ctrl or Alt.
Keyboard.SendKeys(“Message{ENTER}”);
Keyboard.SendKeys(“{F4}”, ModifierKeys.Alt);
Keyboard.SendKeys(“{F4}”, ModifierKeys.Ctrl);
Various others Shortcut Keys are as follows:-
Keyboard.SendKeys(“Message{ENTER}”);
Keyboard.SendKeys(“{F4}”, ModifierKeys.Alt);
Keyboard.SendKeys(“{F4}”, ModifierKeys.Ctrl);
Various others Shortcut Keys are as follows:-
To specify repeating keys, use the form {key number}. You must put a space between key and number. For example, {LEFT 42} means press the LEFT ARROW key 42 times; {h 10} means press H 10 times. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
No comments:
Post a Comment