![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| "Touch" Button with several keys |
|
|
#1 (permalink) |
|
Junky
Join Date: Aug 2006
Posts: 39
![]() |
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. |
|
|
|
|
|
#2 (permalink) |
|
Creator
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,623
![]() |
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) |
|
|
|
|
|
#3 (permalink) | |
|
Junky
Join Date: Aug 2006
Posts: 39
![]() |
Quote:
Thx, but can i use this for a Touch-Button with 2 Images? |
|
|
|
|
|
|
#4 (permalink) |
|
Creator
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,623
![]() |
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) |
|
|
|
|
|
#5 (permalink) |
|
Junky
Join Date: Aug 2006
Posts: 39
![]() |
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. |
|
|
|
|
|
#6 (permalink) |
|
Creator
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,623
![]() |
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) |
|
|
|
|
|
#7 (permalink) | |
|
Junky
Join Date: Aug 2006
Posts: 39
![]() |
Quote:
), e, s, t,Return to be pressed from the Macro. When i release the Button all Keys are up. Understandably ![]() |
|
|
|
|
|
|
#8 (permalink) |
|
Creator
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,623
![]() |
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) |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|