Home UserCP Memberlist Register Calendar FAQ
Home


Go Back   Official TouchBuddy Forum > Support > Technical Q&A

Reply
 
LinkBack Thread Tools Display Modes
"Touch" Button with several keys
Old 08-25-2006, 01:40 PM   #1 (permalink)
Junky
 
Join Date: Aug 2006
Posts: 39
Steffen May is on a distinguished road
Default "Touch" Button with several keys

I will use a "Touch" Button to make a Chat Message on Live for Speed. How can I convert this? Need please an example to learn the macro_select/macro_deselect Funktion to use with several keys one behind the other. Thx...

I hope you understand which I like to ask .

Edit: Is this the right Way zu wrote "Bitte neu starten" in the Chat (T) Box or is there a better solution method with a Touch-Button?

macro_select = predef:SHIFT, KEYDOWN
macro_select = predef:T
macro_select = predef:B
macro_select = predef:SHIFT, KEYUP
macro_select = predef:i
macro_select = predef:t
macro_select = predef:t
macro_select = predef:e
macro_select = predef:SPACE
macro_select = predef:n
macro_select = predef:e
macro_select = predef:u
macro_select = predef:SPACE
macro_select = predef:s
macro_select = predef:t
macro_select = predef:a
macro_select = predef:r
macro_select = predef:t
macro_select = predef:e
macro_select = predef:n
macro_deselect = predef:RETURN

Last edited by Steffen May; 08-25-2006 at 02:23 PM.
Steffen May is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-25-2006, 02:24 PM   #2 (permalink)
Creator
 
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,623
zorlac is on a distinguished road
Default

I`m assuming here the the first "T" is to bring up the chat window:

two way of doing it, one easy (and may not work), and one a bit harder (bit almost certain to work)

To type "TTEST<ENTER>":

Easy way

macro = ttest{ENTER}

Harder way

macro = predef:T, KEYDOWNUP
macro = predef:T, KEYDOWNUP
macro = predef:E, KEYDOWNUP
macro = predef:S, KEYDOWNUP
macro = predef:T, KEYDOWNUP
macro = predef:RETURN, KEYDOWNUP


if you need to create a delay or pause anywhere, insert this line:

macro = {PAUSE xxx}

where "xxx" is the number of milliseconds (1/1000th second) to delay.

The rawkey and predef keys are all listed in the docs/predef-and-rawkey-reference.html file, supplied with TouchBuddy. At the top of that HTML page, there are a few examples.
__________________


(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
Old 08-25-2006, 04:20 PM   #3 (permalink)
Junky
 
Join Date: Aug 2006
Posts: 39
Steffen May is on a distinguished road
Default

Quote:
Originally Posted by zorlac
I`m assuming here the the first "T" is to bring up the chat window:

two way of doing it, one easy (and may not work), and one a bit harder (bit almost certain to work)

To type "TTEST<ENTER>":

Easy way

macro = ttest{ENTER}

Harder way

macro = predef:T, KEYDOWNUP
macro = predef:T, KEYDOWNUP
macro = predef:E, KEYDOWNUP
macro = predef:S, KEYDOWNUP
macro = predef:T, KEYDOWNUP
macro = predef:RETURN, KEYDOWNUP


if you need to create a delay or pause anywhere, insert this line:

macro = {PAUSE xxx}

where "xxx" is the number of milliseconds (1/1000th second) to delay.

The rawkey and predef keys are all listed in the docs/predef-and-rawkey-reference.html file, supplied with TouchBuddy. At the top of that HTML page, there are a few examples.

Thx, but can i use this for a Touch-Button with 2 Images?
Steffen May is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-25-2006, 04:24 PM   #4 (permalink)
Creator
 
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,623
zorlac is on a distinguished road
Default

ummm... how do you want the button to perform?

repeated button presses will send the same macro, but cycle through different images?

one button press will send one set of macros and swap the image - another press will revert the button back to its original state and send another set of macros?
__________________


(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
Old 08-25-2006, 04:54 PM   #5 (permalink)
Junky
 
Join Date: Aug 2006
Posts: 39
Steffen May is on a distinguished road
Default

Sorry, you understood me surely wrongly. I will use this 2 button for the Quickchat. Second is to be indicated if the switch is pressed and the macro is implemented. As I can do otherwise as with a Touch-Button? When i put your Macro in the Touchbutton Box it does not function in LFS.


Last edited by Steffen May; 08-25-2006 at 04:58 PM.
Steffen May is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-25-2006, 08:44 PM   #6 (permalink)
Creator
 
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,623
zorlac is on a distinguished road
Default

ah, OK... i still need to ask another question

Do you want a "press and hold" button (touch)?

or

Do you want a "press once, and then press again to go back" button ("hold")?

and what keypresses do you want sent when (which keypresses for button down, which keypresses for which on button up)?

Once I know that, I can get the button config and macros posted here for you pretty quickly
__________________


(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
Old 08-25-2006, 09:58 PM   #7 (permalink)
Junky
 
Join Date: Aug 2006
Posts: 39
Steffen May is on a distinguished road
Default

Quote:
Originally Posted by zorlac
ah, OK... i still need to ask another question

Do you want a "press and hold" button (touch)?

or

Do you want a "press once, and then press again to go back" button ("hold")?

and what keypresses do you want sent when (which keypresses for button down, which keypresses for which on button up)?

Once I know that, I can get the button config and macros posted here for you pretty quickly
I will only press (touch) the Button for a Chat message (pictures are to change when pressing) and when i touch the Button the Keys T, Shift+T (for a big T ), e, s, t,Return to be pressed from the Macro. When i release the Button all Keys are up.

Understandably
Steffen May is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-25-2006, 10:22 PM   #8 (permalink)
Creator
 
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,623
zorlac is on a distinguished road
Default

ok, lets see

This will send "tTest<return>" when pressed (one key at a time):


[new-button]
type = touch
name = button-name
tabname = tab-name-to-be-placed-on
xpos = 15
ypos = 100
image_file = profile-dir\image-file-unselected.gif
# "hold" buttons currently only support two "states"
# and as such, can only use two images
image_file_secondary = profile-dir\image-file-selected.gif
macro_select = tTest{ENTER}
macro_deselect =
[end-button]


or you might need a delay between the t and the T


[new-button]
type = touch
name = button-name
tabname = tab-name-to-be-placed-on
xpos = 15
ypos = 100
image_file = profile-dir\image-file-unselected.gif
# "hold" buttons currently only support two "states"
# and as such, can only use two images
image_file_secondary = profile-dir\image-file-selected.gif
macro_select = t
macro_select = {PAUSE 100}
macro_select = Test{ENTER}
macro_deselect =
[end-button]


Like bringing up the text chat box, wait for the box to appear (hence the pause) then type "Test<return>".

If that doesnt work, then maybe this will:


[new-button]
type = touch
name = button-name
tabname = tab-name-to-be-placed-on
xpos = 15
ypos = 100
image_file = profile-dir\image-file-unselected.gif
# "hold" buttons currently only support two "states"
# and as such, can only use two images
image_file_secondary = profile-dir\image-file-selected.gif
macro_select = predef:T, KEYDOWNUP
macro_select = {PAUSE 100}
macro_select = predef:SHIFT, KEYDOWN
macro_select = predef:T, KEYDOWNUP
macro_select = predef:SHIFT, KEYUP
macro_select = predef:E, KEYDOWNUP
macro_select = predef:S, KEYDOWNUP
macro_select = predef:T, KEYDOWNUP
macro_select = predef:RETURN, KEYDOWNUP
macro_deselect =
[end-button]


The method depends on how the game grabs the keyboard input. The first 2 methods are easier to create, but less likely to work on all games.

If you are using TouchBuddy Toolkit, then you just need to load both the images, select the button as type "touch" and copy/paste the macro sections in. Save the profile, load up TB and try them out.
__________________


(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
Old 08-25-2006, 10:48 PM   #9 (permalink)
Junky
 
Join Date: Aug 2006
Posts: 39
Steffen May is on a distinguished road
Default

Thx, great Support - i will test it...
Steffen May 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 10:53 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