Home UserCP Memberlist Register Calendar FAQ
Home


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

Reply
 
LinkBack (1) Thread Tools Display Modes
toggle button with keepin key depressed
Old 09-04-2007, 01:45 PM   1 links from elsewhere to this Post. Click to view. #1 (permalink)
Addict
 
Join Date: Feb 2007
Posts: 8
jojob66 is on a distinguished road
Default toggle button with keepin key depressed

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
__________________
jojob66 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: toggle button with keepin key depressed
Old 09-04-2007, 01:50 PM   #2 (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: toggle button with keepin key depressed

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 - 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: toggle button with keepin key depressed
Old 09-04-2007, 02:02 PM   #3 (permalink)
Addict
 
Join Date: Feb 2007
Posts: 8
jojob66 is on a distinguished road
Default Re: toggle button with keepin key depressed

Cheers will give that a go.
__________________
jojob66 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: toggle button with keepin key depressed
Old 09-04-2007, 02:21 PM   #4 (permalink)
Addict
 
Join Date: Feb 2007
Posts: 8
jojob66 is on a distinguished road
Default Re: toggle button with keepin key depressed

Works perfectly, Thanks a lot I can sleep now
__________________
jojob66 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: toggle button with keepin key depressed
Old 09-04-2007, 07:51 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: toggle button with keepin key depressed

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 - DangerDogz)
Touchscreen: Innovatek TM-868 8"; Running Local Mode on Windows 7 64-bit



Last edited by Wild.Bill.Kelso; 09-04-2007 at 07:54 PM.
Wild.Bill.Kelso 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/938-toggle-button-keepin-key-depressed.html
Posted By For Type Date
Official TouchBuddy Forum - Powered by vBulletin This thread Refback 09-04-2007 01:45 PM




All times are GMT. The time now is 11:36 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