Skip to content
Discussion options

You must be logged in to vote

Hi! Thanks for asking!

This is expected behavior though. eventSimulator.SimulateKeyPress(KeyCode.VcW) - this means that the simulator will simulate the W key from the QWERTY layout (third key from the left in the second row), irrespective of the current keyboard layout.

Taking the current layout into consideration is difficult because keyboard layouts can in general produce any Unicode characters. For example, the Ukrainian layout produces Cyrillic letters. It's just not feasible for a low-level library like SharpHook to implement this and expect users of the library to consider the current layout when simulating text.

If you want to simulate text entry, then you should do this instead: e…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@BlackCoyote
Comment options

@TolikPylypchuk
Comment options

Answer selected by TolikPylypchuk
Comment options

You must be logged in to vote
3 replies
@TolikPylypchuk
Comment options

@TolikPylypchuk
Comment options

@BlackCoyote
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants