Ingresar:     


Forum: General Discussion

Tópico: mapping problem

Este tópico es antiguo y puede contener información incorrecta para la nueva versión.

hello everyone and merry xmass
i try to map some keys in my keyboard but i have some problems.. here is my script
var_equal 'd1' 1 ? deck 1 loop ? deck 1 loop_move -4 : var_equal 'd1' 1 ? deck 1 goto -4 : var_equal 'd2' 1 ? deck 2 loop ? deck 2 loop_move -4 : var_equal 'd2' 1 ? deck 2 gotto -4

the main idea is when a press the button 'a' every button will be used for deck 1 and when i press the button 's' every button will be ised for deck 2
so when i press 'a' the value of 'd1' is 1 and when pressing 's' the value of 'd2' is 1 as well..
now when i write the script above (var_equal 'd1' 1 ? deck 1 loop ? deck 1 loop_move -4 : var_equal 'd1' 1 ? deck 1 goto -4 : var_equal 'd2' 1 ? deck 2 loop ? deck 2 loop_move -4 : var_equal 'd2' 1 ? deck 2 gotto -4) the button will do nothing when i press 's' (deck 2) but it works perfectly when i am pressing 'a' (deck 1) did i miss something ?? is something wrong ?? or the script doesn' t work due to vdj problem?? i have same problem when trying to put 2 or more vars on the same 'button'

ps: vdj scripting language isn' t user friendly.. even with me that i work as a programmer
 

Mensajes Fri 24 Dec 10 @ 9:35 am
Try this ..

var_equal 'd1' 1 ? deck 1 loop ? deck 1 loop_move -4 : deck 1 goto -4 : deck 2 loop ? deck 2 loop_move -4 : deck 2 goto -4

All you need is to toggle the d1 var. You dont need d2. If you want to toggle d1 with 2 buttons, map the a button as set 'd1' 1 and map another button as set 'd1' 0
When var=0 all buttons will work for deck 2, and when d1=1 they will work for deck 1, just like the above command.

This could also work easier if you just make all your actions without the deck paraametr. Use the selected deck as var. Use commands like deck 1 select and deck 2 select instead of set 'd1'. Then use the above code without decks and without vars..like

loop ? loop_move -4 : goto -4

Achileas wrote :
ps: vdj scripting language isn' t user friendly..

As you may notice from the second example it's not that bad..;D Think SIMPLE !
 

already thought about that .. but i want to do that with 4 decks so there will be 'd1' 'd2' 'd3' 'd4' on every button.. or i will set an other var like 'd' taking values between 1 and 4... so this is not working for me:( (your 2nd example has my first mapping macro on vdj:))
 

Why do you make your life hard?

Assign as many keyboard buttons as you need, as deck 1 select, deck 2 select, ..., deck 99 select.
Then assign any script action you need without deck x just like the 2nd example i gave you.
 



(Los tópicos y foros antiguos son automáticamente cerrados)