![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| toggle button with keepin key depressed |
|
|
#1 (permalink) |
|
Addict
Join Date: Feb 2007
Posts: 8
![]() |
Pretty easy thing probably but I'm struggling.
In teamspeak in order to whisper to a channel you have to keep a key depressed whilst talking. I want to create a button that when depressed changes image and keeps the TS key depressed, then when pressed again changes image back and send the keyup signal to TS. How do I do this? I've tried all sorts of combinations. Its driving me nuts ![]()
__________________
|
|
|
|
| Re: toggle button with keepin key depressed |
|
|
#2 (permalink) |
|
Toolkit Creator
Join Date: May 2006
Location: On your Six!
Posts: 1,885
![]() |
Try creating a Hold type button. Check the 'No Reset' checkbox so it doesn't turn off until you touch it again.
Use a Macro with a Keydown in the _select part and a Keyup in the _deselect part like this: macro_select = predef:B, KEYDOWN macro_deselect = predef:B, KEYUP I use this to hold the B key down for Brakes in IL2/Pacific Fighters. You could also try making it a Touch type button if you only want it down 'while' you are actually touching it. WBK
__________________
(a.k.a. Snacko) Touchscreen: Innovatek TM-868 8"; Running Local Mode on XP Pro ![]() |
|
|
|
| Re: toggle button with keepin key depressed |
|
|
#5 (permalink) |
|
Toolkit Creator
Join Date: May 2006
Location: On your Six!
Posts: 1,885
![]() |
Just remember that if you exit your game while that key is held down, that Windows will also act like your holding that key down. Windows may act crazy if for instance the key your holding down is the Tab, Delete, Arrows, ect ... The B key may not cause crazy problems but other keys can!
I think even if you closed TB, Windows may still keep that key in the down state until you press it again. I don't think TB is actually 'holding' the key down, it just sends the state of the button to Windows, and Windows keeps it in that 'State' until it's told different from another keypress, or TB macro_deselect.
__________________
(a.k.a. Snacko) Touchscreen: Innovatek TM-868 8"; Running Local Mode on XP Pro ![]() Last edited by Wild.Bill.Kelso; 09-04-2007 at 06:54 PM. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|