![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Why doesn't this macro work? |
|
|
#1 (permalink) |
|
Junky
Join Date: Aug 2006
Posts: 97
![]() |
I changed my TIR center key from CTRL-F9 to CTRL -Scroll Lock. For some reason TB doesn't seem to generate the CTRL-kys properly, since I only get the regular scroll lock function. Here's the code:
macro = predef:RCONTROL, KEYDOWN macro = predef:SCROLLLOCK macro = predef:RCONTROL, KEYUP So what kind of stupid am I this time? |
|
|
|
| Re: Why doesn't this macro work? |
|
|
#2 (permalink) |
|
Toolkit Creator
Join Date: May 2006
Location: On your Six!
Posts: 1,885
![]() |
Have you tried the other control commands? ie: CONTROL or LCONTROL?
Or maybe Sendkeys format? ie: ^{SCROLL}
__________________
(a.k.a. Snacko) Touchscreen: Innovatek TM-868 8"; Running Local Mode on XP Pro ![]() |
|
|
|
| Re: Why doesn't this macro work? |
|
|
#4 (permalink) |
|
Toolkit Creator
Join Date: May 2006
Location: On your Six!
Posts: 1,885
![]() |
Weird.... I set my TrackIR up to use this key to center as well, about 3 months ago. I didn't use it with TB though. It worked with the keyboard for me, but I changed it back to the Windows Apps key on the right side of the spacebar. So, TrackIR can see these keys when they are pressed. But for you, TB won't send them.
Try mixing them up?: macro = predef:RCONTROL, KEYDOWN macro = {SCROLL} macro = predef:RCONTROL, KEYUP Also, I just tried this with my keyboard manually. Without the Control keys, the ScrollLock light goes on and off. With the Control Keys it doesn't. I don't know what to tell you. I use: Left Windows Key to Pause TIR. Right Windows Key to Center. Apps Key for Precision.
__________________
(a.k.a. Snacko) Touchscreen: Innovatek TM-868 8"; Running Local Mode on XP Pro ![]() |
|
|
|
| Re: Why doesn't this macro work? |
|
|
#5 (permalink) |
|
Creator
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,612
![]() |
just tried this on my laptop, and ctrl+scroll doesnt change the scrolllock led... looking to see if M$ intercept this as some kind of special key set
__________________
![]() ![]() (Setup: XP Pro, classic mode, LinITX 8" touchscreen (Client/Server), 19" touchscreen (Local), latest development version of TouchBuddy) |
|
|
|
| Re: Why doesn't this macro work? |
|
|
#6 (permalink) |
|
Toolkit Creator
Join Date: May 2006
Location: On your Six!
Posts: 1,885
![]() |
It does work for a TIR key if you do it manually. But in the TIR HotKeys editor, it calls the keys Ctrl+3, not Ctrl+ScrollLock. But it works.
Maybe the Macro has to be: macro = predef:RCONTROL, KEYDOWN macro = predef:3 macro = predef:RCONTROL, KEYUP
__________________
(a.k.a. Snacko) Touchscreen: Innovatek TM-868 8"; Running Local Mode on XP Pro ![]() |
|
|
|
| Re: Why doesn't this macro work? |
|
|
#7 (permalink) |
|
Junky
Join Date: Aug 2006
Posts: 97
![]() |
The indicator LED seems to indicate that the CTRL-part doesn't go through. Using CTRL-SCROLL manually on the keyboard does work, TIR software says it's CTRL-3. When trying to use it through TB it's like regular scrlk.
Hmm I had a brilliant idea and tried the Cougar's programming software and intercepted the keyup/down events sent by TB and they were absolutely correct. Is SCROLL(LOCK) the name of the button or the actual scroll lock function or something? |
|
|
|
| Re: Why doesn't this macro work? |
|
|
#8 (permalink) |
|
Creator
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,612
![]() |
predef macro SCROLL or SCROLLLOCK are identical, and normal macro SCROLL is defined in the docs for the library I use t create the normal macros.
So, with Cougars prog sw, if you manually press the CONTROL and SCROLL buttons, you get the same keycodes as when you let TB send the macros? Maybe it might need a small delay in the middle? Code:
macro = predef:RCONTROL, KEYDOWN
macro = predef:SCROLLLOCK, KEYDOWN
macro = {PAUSE xxx}
macro = predef:SCROLLLOCK, KEYUP
macro = predef:RCONTROL, KEYUP
__________________
![]() ![]() (Setup: XP Pro, classic mode, LinITX 8" touchscreen (Client/Server), 19" touchscreen (Local), latest development version of TouchBuddy) |
|
|
|
| Re: Why doesn't this macro work? |
|
|
#9 (permalink) |
|
Junky
Join Date: Aug 2006
Posts: 97
![]() |
Weird. Or perhaps enlightening. When I press TIR button on TB I get
Down: CTL Down: SCRLCK up: SCRLCK Up: CTL When I press CTRL-SCRLLCK on the keyboard I get Down: CTL Down: 3 Up: 3 Up: CTL |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|