Home UserCP Memberlist Register Calendar FAQ
Home


Go Back   Official TouchBuddy Forum > Support > How do I... ?

Reply
 
LinkBack (2) Thread Tools Display Modes
Held needed with TB
Old 01-19-2009, 07:29 AM   2 links from elsewhere to this Post. Click to view. #1 (permalink)
Junky
 
Join Date: Nov 2008
Posts: 51
Manta is an unknown quantity at this point
Default Held needed with TB

Hi all

Hopefully you can help me, I am trying to program the toggle switch to firstly open the switch cover in black shark, then click the switch, then close the cover

Is this possible? and is it possible to use a different image for each step?

The keys are
LALT, LCTRL, LSHIFT, E
LCTRL, LSHIFT, E
LALT, LCTRL, LSHIFT, E


Alsom does anyone have any buttons with switches with a cover, wow i am so lost
__________________
Manta is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Held needed with TB
Old 01-19-2009, 01:40 PM   #2 (permalink)
Junky
 
Join Date: Jul 2006
Location: Scotland
Posts: 51
Scrambler is on a distinguished road
Default Re: Held needed with TB

These macros should work

To open the cover

macro = predef:LALT, KEYDOWN
macro = predef:LCONTROL, KEYDOWN
macro = predef:LSHIFT, KEYDOWN
macro = e
macro = predef:LSHIFT, KEYUP
macro = predef:LCONTROL, KEYUP
macro = predef:LALT, KEYUP

To operate the switch

macro = predef:LCONTROL, KEYDOWN
macro = predef:LSHIFT, KEYDOWN
macro = e
macro = predef:LSHIFT, KEYUP
macro = predef:LCONTROL, KEYUP


To close the cover



macro = predef:LALT, KEYDOWN
macro = predef:LCONTROL, KEYDOWN
macro = predef:LSHIFT, KEYDOWN
macro = e
macro = predef:LSHIFT, KEYUP
macro = predef:LCONTROL, KEYUP
macro = predef:LALT, KEYUP


I assume you want the first press to open the cover, the second press to operate the switch and third press to close the cover.

How to get this to work on a single button is the tricky bit. I have experimented with a toggle button using layered images with hot spots but did not work - could not see how to get lower layers to come to the top so they were active. Must have another look at this as I am sure there must be a way to do it.

Last edited by Scrambler; 01-19-2009 at 02:03 PM.
Scrambler is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Held needed with TB
Old 01-19-2009, 08:59 PM   #3 (permalink)
 
Wild.Bill.Kelso's Avatar
DD_SNACKO
 
Join Date: May 2006
Location: Cincinnati, Ohio
Posts: 2,254
Wild.Bill.Kelso is on a distinguished road
Default Re: Held needed with TB

If you will PM me a link to your profile I can play with if if you like. It's been about 8 months since I've done any serious macro programming in TB though... But there are tricks to be had.

One idea is to put a pause command in between the 'open the cover' and 'operate the switch'. Or do it the other way and put it between the last 'operate the switch' and 'close the cover'. So, the opening or closing of the cover just happens.

Offhand I don't remember any way of sending 3 different macros in once switch. But you can have many 3 or even more images. They just usually all send the same keystroke each time and switch to the next image. Like in Lockon when you cycle the 3 stages of the headlights that all use the same key command.
__________________
(a.k.a. Snacko - DangerDogz)
Touchscreen: Innovatek TM-868 8"; Running Local Mode on Windows 7 64-bit


Wild.Bill.Kelso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Held needed with TB
Old 01-20-2009, 03:33 AM   #4 (permalink)
Junky
 
Join Date: Nov 2008
Posts: 51
Manta is an unknown quantity at this point
Default Re: Held needed with TB

Cool thanks for the info I will give it a go.

It looks like it is going to be a bit of work, if i add all the macros without a pause does this mean that one press would open the cover, activate the switch then close the cover?

And as long as the key commands are the same, when this swithc is pressed afagain it will open the cover, turn the switch off and then close the cover?


This might be the way to go, I will need to check the commands of the game when i get home
__________________
Manta is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Held needed with TB
Old 01-20-2009, 04:46 PM   #5 (permalink)
 
Wild.Bill.Kelso's Avatar
DD_SNACKO
 
Join Date: May 2006
Location: Cincinnati, Ohio
Posts: 2,254
Wild.Bill.Kelso is on a distinguished road
Default Re: Held needed with TB

It's been a while so I can't remember which buttons are which...

But I think it's the Toggle type button that gives you the option to send one set of macro_select statements the first time you touch it. And a second set of macro_deselect statements the next time you touch it. Then it would start over the next time.

But each touch just changes to the next image I think. So you would just be able to have two images. Not sure, I would have to play around with it.

Or, have 4 images.
First touch: Sends open and flips switch macros. Changes to (1st) image to cover open with switch up.
Second touch: Sends close cover macros. Changes to (2nd) image with switch up and cover down.
(assuming the same sequence of macros turn the swich OFF)
Third touch: Send same macros as First Touch. Changes to (3rd) image with cover open with switch down.
Fourth toch: Sends same macros as Second touch. Changes to (4th) image with cover closed and switch down.

So, basically, you would just have a set of macro_select and macro_deselect buttons with 4 images because it sends the same two sets of macros each time..

I don't have Black Shark yet so I'm just guessing.... And I usually have to look at other profiles to find some good tricks, and remember how I did stuff. What do you think?

WBK
__________________
(a.k.a. Snacko - DangerDogz)
Touchscreen: Innovatek TM-868 8"; Running Local Mode on Windows 7 64-bit


Wild.Bill.Kelso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Held needed with TB
Old 01-21-2009, 03:37 AM   #6 (permalink)
Junky
 
Join Date: Nov 2008
Posts: 51
Manta is an unknown quantity at this point
Default Re: Held needed with TB

I think that should work, I have it working with one press will open the cover, turn on the switch and then close the cover which is nice and easy.

But I would like to know if it can be done with the 4 images, i will let you know
__________________
Manta 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

LinkBacks (?)
LinkBack to this Thread: http://www.touch-buddy.com/forums/how-do-i/1091-held-needed-tb.html
Posted By For Type Date
Official TouchBuddy Forum - Powered by vBulletin This thread Refback 01-19-2009 11:11 AM
Official TouchBuddy Forum - Powered by vBulletin This thread Refback 01-19-2009 09:00 AM




All times are GMT. The time now is 08:46 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

  www.touch-buddy.com        Archive  


Footer
vBSkinworks Top