Home UserCP Memberlist Register Calendar FAQ
Home


Go Back   Official TouchBuddy Forum > TB General Discussion > Public Chat

Reply
 
LinkBack (1) Thread Tools Display Modes
Syntax for Touch type function
Old 02-16-2009, 11:42 AM   1 links from elsewhere to this Post. Click to view. #1 (permalink)
Junky
 
Join Date: Jan 2009
Posts: 35
hannibal is an unknown quantity at this point
Default Syntax for Touch type function

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
hannibal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Syntax for Touch type function
Old 02-16-2009, 01:36 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: Syntax for Touch type function

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:
[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:SHIFT, KEYDOWN
macro_select = predef:G
macro_select = predef:G
macro_select = predef:SHIFT, KEYUP
[end-button]
If you test this using Notepad, it sends a shifted (capital) G key over and over again into the Notepad until you let go of the touchbuddy button.

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: Syntax for Touch type function
Old 02-16-2009, 10:12 PM   #3 (permalink)
Junky
 
Join Date: Jan 2009
Posts: 35
hannibal is an unknown quantity at this point
Default Re: Syntax for Touch type function

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.
hannibal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Syntax for Touch type function
Old 02-16-2009, 11:59 PM   #4 (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: Syntax for Touch type function

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


Wild.Bill.Kelso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Syntax for Touch type function
Old 02-18-2009, 03:37 AM   #5 (permalink)
Junky
 
Join Date: Jan 2009
Posts: 35
hannibal is an unknown quantity at this point
Default Re: Syntax for Touch type function

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...
hannibal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Syntax for Touch type function
Old 02-18-2009, 04:22 PM   #6 (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: Syntax for Touch type function

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


Wild.Bill.Kelso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Syntax for Touch type function
Old 02-20-2009, 01:32 PM   #7 (permalink)
Junky
 
Join Date: Jan 2009
Posts: 35
hannibal is an unknown quantity at this point
Default Re: Syntax for Touch type function

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
hannibal 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/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




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