![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Syntax for Touch type function |
|
|
#1 (permalink)
|
|
Junky
Join Date: Jan 2009
Posts: 35
![]() |
hello
need help...trying to configure my profile.. im trying to make most of my button types of type touch... but i can get it to work properly... are there advance parameters like timing? i tried to look at the touchbuddy.cfg.. didnt notice when i have a macro like type = touch xxxxxxxxxxxxx macro_select = predef:LCONTROL, KEYDOWN macro_select = predef:m, KEYDOWN macro_deselect = predef:m, KEYUP macro_deselect = predef:LCONTROL, KEYUP for some reason, i can only press the key once, and from then that button type stops working. i also tried type = touch XXXXXXXXXXXXXXX macro_select = predef:LCONTROL, KEYDOWN macro = m macro_deselect = predef:LCONTROL, KEYUP same result..... (YES I HAVE MADE SURE THAT THE AUTO RIGHT CLICK OPTION WAS TURNED OFF) i really want touch type buttons in my profile! please some one tell me all the details about programming touch type buttons, other than whats on the help file...cuz its not helping..lol |
|
|
|
| Re: Syntax for Touch type function |
|
|
#2 (permalink) | |
|
DD_SNACKO
Join Date: May 2006
Location: Cincinnati, Ohio
Posts: 2,254
![]() |
If you want a button that keeps a key pressed down the entire time you are touching it with your finger, then releases the key when you stop touching the button. I used this for the gear in IL2:
Quote:
WBK
__________________
(a.k.a. Snacko - DangerDogz) Touchscreen: Innovatek TM-868 8"; Running Local Mode on Windows 7 64-bit ![]() |
|
|
|
|
| Re: Syntax for Touch type function |
|
|
#3 (permalink) |
|
Junky
Join Date: Jan 2009
Posts: 35
![]() |
ok, i will give it a try,
i just want it to function like a normal key on a keyboard, functionality wise, but graphically, just rollover to another image when there is touchscreen contact..... if you were to just have one key only, let say pressing G (no shift or control etc) would the syntax be as follows? [new-button] type = touch name = Flight_Gear_Manual_Up tabname = Flight xpos = 454 ypos = 275 layer = 0 repeat = 1 image_file = IL2-Series-wbk 2.1\Flight\Flight_Gear_Manual_Up.gif image_file_1 = IL2-Series-wbk 2.1\Flight\Flight_Gear_Manual_Up_2.gif macro_select = predef:G macro_select = predef:G [end-button] i noticed you do not have any macro_deselect statements.. lets see! i spent about 2 week so far on a black shark profile..i would like it to work as designed! ill give it a try... for a the time being, i like to know, is there a macro that clears specific buttons? (YES, i know the *TB* has a selection that clears ALL macros) what i am trying to do is, let say i have 4 toggles on a tab.. but on that same tab, i want a button that would reset and clear macros on those 4 toggles on that tab, but not affect other toggles in other tabs Last edited by hannibal; 02-16-2009 at 11:40 PM. |
|
|
|
| Re: Syntax for Touch type function |
|
|
#4 (permalink) |
|
DD_SNACKO
Join Date: May 2006
Location: Cincinnati, Ohio
Posts: 2,254
![]() |
The macro_deselect is optional I have found. I have many macros without use the _select/_deselect combiniation, but have left off the macro_deselect since I didn't need to send any keys on deselect. However, one person who uses TouchBuddy in Client/Server mode had a problem with these buttons in my profile. So, I put a 'dummy' macro_deselect in like this, and that fixed it:
macro_deselect = {} But it sounds like you are wanting to do the most basic thing TB does. Just send one keystroke and change the image. Just try using a 'Toggle' button type. Add some images. And code a macro like this: macro = predef:G In the future a good way to find new examples is to download some profiles, and just use them. If one acts the way you want yours to work, then open it in the Toolkit and look at it. WBK
__________________
(a.k.a. Snacko - DangerDogz) Touchscreen: Innovatek TM-868 8"; Running Local Mode on Windows 7 64-bit ![]() |
|
|
|
| Re: Syntax for Touch type function |
|
|
#5 (permalink) |
|
Junky
Join Date: Jan 2009
Posts: 35
![]() |
wild bill ..
your the best... may i ask ? with the repeat enable for this touch type button... can i specify the time interval for when it repeats the macro? thanks... |
|
|
|
| Re: Syntax for Touch type function |
|
|
#6 (permalink) |
|
DD_SNACKO
Join Date: May 2006
Location: Cincinnati, Ohio
Posts: 2,254
![]() |
I think so. I have not programmed a macro or profile in about a year, so my memory is leaving me.
I will usually look at another profile and see how they work. Or another good way to find out is to read the Help file in the Toolkit. And then test out your button in Notepad. I suggest when testing in Notepad to use keys that will print a letter and see how TB sends those keys. For example send the 'x' key, or send Shift and the 'x' key and see if that works, and changes your images, repeats, toggles, holds, changes Tabs, or whatever you are trying to do. If it works the way you want, you can then replace it with your key commands that may not have typed a key in Notepad. Like maybe the key you were trying to send was Shift-Home. That would not have able to be tested in Notepad.
__________________
(a.k.a. Snacko - DangerDogz) Touchscreen: Innovatek TM-868 8"; Running Local Mode on Windows 7 64-bit ![]() |
|
|
|
| Re: Syntax for Touch type function |
|
|
#7 (permalink) |
|
Junky
Join Date: Jan 2009
Posts: 35
![]() |
hey wild...
i just want to say thanks for the replies, and also for making touch buddy possible along with who ever created it.. i finally got my custon DCS black profile up and running...will post after i test... wild bill FTW |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.touch-buddy.com/forums/public-chat/1103-syntax-touch-type-function.html
|
||||
| Posted By | For | Type | Date | |
| Official TouchBuddy Forum - Powered by vBulletin | This thread | Refback | 02-17-2009 10:05 AM | |