Incoming keystroke sequence

akamed

2014-11-17 18:23:03

Hi,

I am trying to capture a combination of keystrokes (i.e. CTRL+BACKSPACE) as incoming trigger, but I can´t get it.
Is it posible to do?

Thanks!

Ruben

DvlsAdvct

2014-11-17 23:06:31

Hi Ruben

This should be doable, but you'll need to use a combination of variables and separate translators to send it out. What we need to do is create a translator for just the shift key which sets a global variable, and then a translator for the L key which only triggers when the Shift key is held. It should look something like:

Code: Select all

Translator 1: Ctrl Key
Incoming Message: Keystroke Ctrl; Key Down Action
Rules: g0=1
Outgoing Message: None

Translator 2: Ctrl Key
Incoming Message: Keystroke Ctrl; Key Up Action
Rules: g0=0
Outgoing Message: None

Translator 3: Backspace Key
Incoming Message: Keystroke Backspace; Key Action
Rules: if g0!=1 then exit rules, skip outgoing action
Outgoing Message: <whatever you want> 
Make sense?
Jared

akamed

2014-11-17 23:11:51

Of course if has sense DvlsAdvct.
If could be easier if it could be captured directly, but it should work as you show:)
I only need it for one action, so there´s will be no problem.
Thank you very much for the tip!