KEYCOMBOOUT?

Discuss problems and solutions.
SCNDRCLCK
Newbie
Posts: 2
Joined: 15 May 2012 10:51

KEYCOMBOOUT?

Post by SCNDRCLCK »

I'm wondering how to use this script. I'm merely wanting a custom button (pad) to send a SHIFT + TAB to Ableton.
electrofux
Regular
Posts: 294
Joined: 24 Jan 2012 18:22

Re: KEYCOMBOOUT?

Post by electrofux »

Yeah, i also tried to get this running but whatever i write it all stays red :/
electrofux
Regular
Posts: 294
Joined: 24 Jan 2012 18:22

Re: KEYCOMBOOUT?

Post by electrofux »

Please, some quick examples on usage would be pretty cool.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: KEYCOMBOOUT?

Post by Softcore »

the general format is

keycomboout(target, ctrl, alt, shift, key)

target is kbmouse out specified - for example 0
for ctrl, alt, shift you need to specify a 0 (false, no) or a 1 (true, yes)
and then the desired key in ASCII

for example
keycomboout(0, 1, 0, 1, 9) will produce ctrl+shift+tab and it will be output at kbmouse out 0

Here is the complete ASCII table for the keys! ;)


q 81
w 87
e 69
r 82
t 84
y 89
u 85
i 73
o 79
p 80
[ 219
] 221
\ 220
a 65
s 83
d 68
f 70
g 71
h 72
j 74
k 75
l 76
; 186
' 222
z 90
x 88
c 67
v 86
b 66
n 78
m 77
, 188
. 190
/ 191
up 38
down 40
left 37
right 39
space 32
Win 91
alt 0X12
shift 0X10
ctrl 0X11
capslock 20
tab 9
enter 13
backspace 8
esc 0X1B
'(?) 129
1 49
2 50
3 51
4 52
5 53
6 54
7 55
8 56
9 57
0 48
- 189
= 187
num+ 107
num- 109
PgUp 33
PgDn 34
ins 45
del 46
home 36
end 35
F1 112
F2 113
F3 114
F4 115
F5 116
F6 117
F7 118
F8 119
F9 120
F10 121
F11 122
F12 123
electrofux
Regular
Posts: 294
Joined: 24 Jan 2012 18:22

Re: KEYCOMBOOUT?

Post by electrofux »

Thank you very much. This explains it all :idea:
SCNDRCLCK
Newbie
Posts: 2
Joined: 15 May 2012 10:51

Re: KEYCOMBOOUT?

Post by SCNDRCLCK »

thanks, SOFTCORE...

i am still confused about how to use this. I created a custom button, created a script, and then in the script box for that custom button inserted: keycomboout (0,0,0,0,0); where do you set the mapping for the button? I put the midi and osc targets to none so that I didn't trigger the midi message that was generated upon creating the button. I set the kb/mouse button to 0 in the lemur daemon... thanks for your help
bite
Newbie
Posts: 22
Joined: 01 Apr 2012 13:13

Re: KEYCOMBOOUT?

Post by bite »

Hello, i want to send and arrow left message.
I,m trying keycomboout(0, 0, 0, 0, 37) but doesn,t work. Any ideas about what is the problem? I try other keycombout combinations and works, but i can,t with navigation arrows.
Please, some help!
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: KEYCOMBOOUT?

Post by Softcore »

Keycomboout is for combined keys!

You need

keyout(target, key, state)

for a single key press! Dont foerget that you also need to script a state=0 (key release) not only a state=1 (key press)
bite
Newbie
Posts: 22
Joined: 01 Apr 2012 13:13

Re: KEYCOMBOOUT?

Post by bite »

Thanks Softcore, i,m just starting with Lemur and I don,t know how to script very well the state.It took me weeks to understand to make a single keycomboout and now it will takes me my whole life to make this.
This is my template : Browser it,s working
But Left arrow still doesn,t work.

They,ll have to drop the line a lot, because sincerely this must be more easy to do.
Attachments
KEY LEFT ARROW.jzml
keyboard 1 is selected
(2.95 KiB) Downloaded 119 times
Post Reply