You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see in your Example folder here a method called CombineKeys that is not currently available.
Do you plan to add key modifiers to the keyboard methods already available, such as KeyPress : KeyPress(Key.A, Key.Control)
That's a very usefull feature for any kind of projects that manipulate the keyboard "like a human". Those things are currently doable in AutoHotkey and in other .NET Windows-only libs, so I hope it gets implemented here aswell.
Workaround I have to do now is to Key down a modifier, such as Control, then Key press my target key, then Key up the modifier. That's fine, just not clean in my opinion.
varrobot=newRobot();robot.KeyDown(Key.Control);robot.KeyDown(Key.Shift);robot.KeyPress(Key.A);robot.KeyUp(Key.Shift);robot.KeyUp(Key.Control);// instead of just overlaoding the method withrobot.KeyPress(Key.A,new[]{Key.Control,Key.Shift})
The text was updated successfully, but these errors were encountered:
If you take a look on CombineKey, it does the same that you proposed here. In fact it is not working as expected because I need to manage the modifiers flag when I do a keydown / keyup.
I have not tested yet but the solution looks like this guy did in this fork:
I see in your
Example
folder here a method calledCombineKeys
that is not currently available.Do you plan to add key modifiers to the keyboard methods already available, such as
KeyPress
:KeyPress(Key.A, Key.Control)
That's a very usefull feature for any kind of projects that manipulate the keyboard "like a human". Those things are currently doable in AutoHotkey and in other .NET Windows-only libs, so I hope it gets implemented here aswell.
Workaround I have to do now is to
Key down
a modifier, such asControl
, thenKey press
my target key, thenKey up
the modifier. That's fine, just not clean in my opinion.The text was updated successfully, but these errors were encountered: