Home UserCP Memberlist Register Calendar FAQ
Home

Go Back   Official TouchBuddy Forum > Support > Technical Q&A
Register FAQDonate Members List Calendar Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Display Modes
Why doesn't this macro work?
Old 06-25-2007, 07:39 PM   #1 (permalink)
Junky
 
Join Date: Aug 2006
Posts: 97
AndyHill is on a distinguished road
Default Why doesn't this macro work?

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?
AndyHill is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Why doesn't this macro work?
Old 06-25-2007, 10:49 PM   #2 (permalink)
 
Wild.Bill.Kelso's Avatar
Toolkit Creator
 
Join Date: May 2006
Location: On your Six!
Posts: 1,885
Wild.Bill.Kelso is on a distinguished road
Default Re: Why doesn't this macro work?

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


Wild.Bill.Kelso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Why doesn't this macro work?
Old 06-27-2007, 10:06 AM   #3 (permalink)
Junky
 
Join Date: Aug 2006
Posts: 97
AndyHill is on a distinguished road
Default Re: Why doesn't this macro work?

Nope, no worky. The CTRL-press seems to be ignored every time. And the funny thing is, the exact same macro worked fine when I had predef:F9 in the middle.
AndyHill is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Why doesn't this macro work?
Old 06-27-2007, 01:42 PM   #4 (permalink)
 
Wild.Bill.Kelso's Avatar
Toolkit Creator
 
Join Date: May 2006
Location: On your Six!
Posts: 1,885
Wild.Bill.Kelso is on a distinguished road
Default Re: Why doesn't this macro work?

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


Wild.Bill.Kelso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Why doesn't this macro work?
Old 06-27-2007, 02:11 PM   #5 (permalink)
Creator
 
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,612
zorlac is on a distinguished road
Default Re: Why doesn't this macro work?

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)
zorlac is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Why doesn't this macro work?
Old 06-27-2007, 05:31 PM   #6 (permalink)
 
Wild.Bill.Kelso's Avatar
Toolkit Creator
 
Join Date: May 2006
Location: On your Six!
Posts: 1,885
Wild.Bill.Kelso is on a distinguished road
Default Re: Why doesn't this macro work?

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


Wild.Bill.Kelso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Why doesn't this macro work?
Old 06-27-2007, 08:33 PM   #7 (permalink)
Junky
 
Join Date: Aug 2006
Posts: 97
AndyHill is on a distinguished road
Default Re: Why doesn't this macro work?

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?
AndyHill is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Why doesn't this macro work?
Old 06-28-2007, 12:57 PM   #8 (permalink)
Creator
 
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,612
zorlac is on a distinguished road
Default Re: Why doesn't this macro work?

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
where "xxx" is the number of milliseconds to pause.
__________________


(Setup: XP Pro, classic mode, LinITX 8" touchscreen (Client/Server), 19" touchscreen (Local), latest development version of TouchBuddy)
zorlac is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Why doesn't this macro work?
Old 06-28-2007, 10:44 PM   #9 (permalink)
Junky
 
Join Date: Aug 2006
Posts: 97
AndyHill is on a distinguished road
Default Re: Why doesn't this macro work?

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
AndyHill is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:22 PM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

  www.touch-buddy.com        Archive  


Footer
vBSkinworks Top