oblitum / Interception

The Interception API aims to build a portable programming interface that allows one to intercept and control a range of input devices.
http://oblita.com/interception
1.35k stars 269 forks source link

Max value of stroke.code #19

Closed justasSav closed 8 years ago

justasSav commented 8 years ago

What is the maximum stroke.code value for keyboards? Can i for example increase all codes by 300?

stroke.code = stroke.code + 300; //no events fired stroke.code = stroke.code + 1;//fires keyboard event and outputs next key in keyboard

Is there any way i can send custom unicode? Thanks.

oblitum commented 8 years ago

Interception works with raw scan codes solely, since it's very low level, it deals with raw keyboard data.

So, answering your first question, you should not send arbitrary data, please do some research about what "scan code" means.

Regarding your second question, yes it's possible, take a look here for example:

I've made a sample application long time ago that used Interception with the help of "Method 1: Universal" of that article to swap any key for the corresponding similar cyrillic character keyboard sequence, so that, for example, when I typed "yorick@oblita.com" in my keyboard I'd get "уθя¡ςκ@θβƪ¡τΔ.ςθм".