push layer key
Posted: Fri May 19, 2017 6:02 am
Hi, I have some scripts in glovepie that I use a lot and I would like to replicate them in freepie but I need help with the syntax,
The first example: Two variables, the first one is active but pressing a key activates the second
With glovepie would be:
if Pressed(key.a){
say("a")
}
if Pressed(key.b){
say("b")
}
if Pressed(key.c){
say("c")
}
if Pressed(key.d){
say("d")
}
if starting{
var.layout1=1
var.layout2=0
}
if var.layout1{
key.a=key.1
key.b=key.2
}
if var.layout2{
key.c=key.1
key.d=key.2
}
if pressed (key.3){
var.layout1=0
var.layout2=1
}
if released (key.3){
var.layout1=1
var.layout2=0
}
Thank you
The first example: Two variables, the first one is active but pressing a key activates the second
With glovepie would be:
if Pressed(key.a){
say("a")
}
if Pressed(key.b){
say("b")
}
if Pressed(key.c){
say("c")
}
if Pressed(key.d){
say("d")
}
if starting{
var.layout1=1
var.layout2=0
}
if var.layout1{
key.a=key.1
key.b=key.2
}
if var.layout2{
key.c=key.1
key.d=key.2
}
if pressed (key.3){
var.layout1=0
var.layout2=1
}
if released (key.3){
var.layout1=1
var.layout2=0
}
Thank you