Shift Command

Scr1pter

2016-06-20 14:53:23

Hi,

I plan to work with hold and double tab too.

First I want to try it with hold.
My idea was to test it with keystrokes.
Numlock 0 and Numlock 3.

If Numlock 0 is pressed, Numlock 3 executes an action.
If Numlock 0 is not pressed, Numlock 3 does nothing.
(Later I will use the same logic on my MIDI device.)

I tried this:

Code: Select all

Name..................................Incoming Trigger...........Outgoing Action..............Options
[0]Num0_down..........................Key down: Num 0............(none).......................pp=1
[1]Num0_up............................Key up: Num 0..............(none).......................pp=0
[2]Num3_down_up.......................Physical Keys: Num 3.......Mouse move to X=1846 Y=117...5 rules

The rules of Num3_down_up are:

Code: Select all

if pp==1 then 
exit rules, execute Outgoing Action

if pp==0 then 
exit rules, skip Outgoing Action
I expected then when pressing Num3, nothing will happen.
When pressing and holding Num0 and pressing Num3, the mouse cursor will move.
However, the mouse cursor always gets moved, no matter if Num0 is pressed or not.

Can you help me?

DvlsAdvct

2016-07-18 00:45:14

Hi Scr1pter

So sorry for the delay. I split your post into a new one so it can be kept together.

The issue is you are using pp, which is a local variable, which can't be referenced by other translators. If you replace pp with g0, you should be okay. Let me know if that works.

Thanks
Jared