![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Held needed with TB |
|
|
#1 (permalink)
|
|
Junky
Join Date: Nov 2008
Posts: 51
![]() |
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
__________________
|
|
|
|
| Re: Held needed with TB |
|
|
#2 (permalink) |
|
Junky
Join Date: Jul 2006
Location: Scotland
Posts: 51
![]() |
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. |
|
|
|
| Re: Held needed with TB |
|
|
#3 (permalink) |
|
DD_SNACKO
Join Date: May 2006
Location: Cincinnati, Ohio
Posts: 2,254
![]() |
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 ![]() |
|
|
|
| Re: Held needed with TB |
|
|
#4 (permalink) |
|
Junky
Join Date: Nov 2008
Posts: 51
![]() |
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
__________________
|
|
|
|
| Re: Held needed with TB |
|
|
#5 (permalink) |
|
DD_SNACKO
Join Date: May 2006
Location: Cincinnati, Ohio
Posts: 2,254
![]() |
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 ![]() |
|
|
|
| Re: Held needed with TB |
|
|
#6 (permalink) |
|
Junky
Join Date: Nov 2008
Posts: 51
![]() |
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
__________________
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 | |