Home UserCP Memberlist Register Calendar FAQ
Home


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

Reply
 
LinkBack (1) Thread Tools Display Modes
Sending characters continuously
Old 12-17-2009, 02:03 AM   1 links from elsewhere to this Post. Click to view. #1 (permalink)
Junky
 
Join Date: Feb 2008
Posts: 83
Bill Clark is an unknown quantity at this point
Default Sending characters continuously

WBK,

Is there a way to program a button so that when pressed and held down, it will send out a character or character string continuously until the button is released.

For example, I want to move the eye point over in FSX a fair distance, currently I have to press the button many time to get the eyepoint where I want it.

Any ideas?

Bill
Bill Clark is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Sending characters continuously
Old 12-17-2009, 05:23 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: Sending characters continuously

Yep. Look at the 'Hold' button type in the Toolkit help. You can tell it to push the key down with one touch. And it stays down! Then you can tell it to release the keypress them next time you touch the button. ie:

macro_select = predef:W, KEYDOWN
macro_deselect = predef:W, KEYUP


Or, you could do the same thing using the 'Touch' button type, so it continuously sends the keystrokes as long as you are touching the button. Be sure to check the 'Repeat' checkbox for this so it repeatedly sends the keystrokes. For this one I'm not sure which works better:

macro_select = predef:W, KEYDOWN
macro_deselect = predef:W, KEYUP

-or-

macro_select = predef:W
macro_deselect =

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: Sending characters continuously
Old 12-18-2009, 03:27 PM   #3 (permalink)
Junky
 
Join Date: Feb 2008
Posts: 83
Bill Clark is an unknown quantity at this point
Default Re: Sending characters continuously

Thanks Bill,

Bill Clark
Bill Clark is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Sending characters continuously
Old 02-15-2010, 12:45 AM   #4 (permalink)
Junky
 
Join Date: Feb 2008
Posts: 83
Bill Clark is an unknown quantity at this point
Default Re: Sending characters continuously

Quote:
Originally Posted by Bill Clark View Post
Thanks Bill,

Bill Clark
Bill,

I'm attempting to now send characters continuously, but it's not working. Here is my keystroke setup, see anything wrong?

macro_select = predef:CONTROL, KEYDOWN
macro_select = predef:SHIFT, KEYDOWN
macro_select = predef:w, KEYDOWN
macro_deselect =predef:w, KEYUP
macro_deselect = predef:SHIFT, KEYUP
macro_deselect = predef:CONTROL, KEYUP

By the way, I'm in a client server setup.

Bill
Bill Clark is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Sending characters continuously
Old 02-15-2010, 01:33 AM   #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: Sending characters continuously

I'm not clear on what you want. Do you want to repeatedly press the Ctrl-Shift-W keys over and over like this?

I would use the repeat checkbox on a touch type button like this:
macro_select = predef:CONTROL, KEYDOWN
macro_select = predef:SHIFT, KEYDOWN
macro_select = predef:w
macro_select = predef:SHIFT, KEYUP
macro_select = predef:CONTROL, KEYUP
macro_deselect = {}

or this

macro_select = ^~W
macro_deselect = {}


Or do you want to hold down the Ctrl-Shift-W keys until you release them?
__________________
(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: Sending characters continuously
Old 02-15-2010, 06:59 PM   #6 (permalink)
Junky
 
Join Date: Feb 2008
Posts: 83
Bill Clark is an unknown quantity at this point
Default Re: Sending characters continuously

Quote:
Originally Posted by Wild.Bill.Kelso View Post
I'm not clear on what you want. Do you want to repeatedly press the Ctrl-Shift-W keys over and over like this?

I would use the repeat checkbox on a touch type button like this:
macro_select = predef:CONTROL, KEYDOWN
macro_select = predef:SHIFT, KEYDOWN
macro_select = predef:w
macro_select = predef:SHIFT, KEYUP
macro_select = predef:CONTROL, KEYUP
macro_deselect = {}

or this

macro_select = ^~W
macro_deselect = {}


Or do you want to hold down the Ctrl-Shift-W keys until you release them?
Bill,

What I would like to do is use the touch feature so I can repeat sending the "w" character until I release the button.

I noticed that you don't need the "macro_deselect = predef:w" statement when I looked at your example. However, I'm confused about what the last line in your example does?

macro_deselect = {}

Bill
Bill Clark is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Sending characters continuously
Old 02-15-2010, 11:24 PM   #7 (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: Sending characters continuously

The macro_deselect is not supposed to be required if you don't want to use it. But I found a bug where the button does not work correctly in network mode if this is missing. So, I just put that line in as a dummy command. It sends no keystrokes.

As far as just repeating the w key and not all of the other keys (Ctrl-Shift), that cannot be done. The only way I can think might work is using a touch button with the repeat checkbox and this macro:

macro_select = predef:CONTROL, KEYDOWN
macro_select = predef:SHIFT, KEYDOWN
macro_select = w
macro_select = predef:SHIFT, KEYUP
macro_select = predef:CONTROL, KEYUP
macro_deselect = {}

I tested this using the Test window in my Saitek Game Controller Profile Editor. It has a window that will test any keys, controllers, mouse buttons that are pressed on your system. As long as I kept the button touched on the touchscreen it repeated pressed, then released the Ctrl-Shift-w keys about every .2 seconds. If that is too slow for you you can just repeat the w key until it works better for you like this:

macro_select = predef:CONTROL, KEYDOWN
macro_select = predef:SHIFT, KEYDOWN
macro_select = wwwwwwwwww
macro_select = predef:SHIFT, KEYUP
macro_select = predef:CONTROL, KEYUP
macro_deselect = {}
__________________
(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: Sending characters continuously
Old 02-16-2010, 07:41 PM   #8 (permalink)
Junky
 
Join Date: Feb 2008
Posts: 83
Bill Clark is an unknown quantity at this point
Default Re: Sending characters continuously

Bill,

Thanks, this did it. I'm a little curious about the multiple "wwwww's" in your second profile. Does it make it go faster, I'm not sure what the benefit is?

Bill
Bill Clark is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Sending characters continuously
Old 02-17-2010, 04:13 PM   #9 (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: Sending characters continuously

If you put in just one w, then since TB is hardcoded to repeat the sending of keys at only a once per .2 seconds, you only get one w every .2 seconds. If you put in wwwww then you get 5 w's every .2 seconds. It is like sending keys 5 times faster than TB allows..... sort of....
__________________
(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: Sending characters continuously
Old 02-19-2010, 12:10 PM   #10 (permalink)
Junky
 
Join Date: Nov 2008
Posts: 51
Manta is an unknown quantity at this point
Default Re: Sending characters continuously

Would this be a good work around for the bombsight stuff in your Il2 profile?
__________________
Manta 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/1172-sending-characters-continuously.html
Posted By For Type Date
Official TouchBuddy Forum - Powered by vBulletin This thread Refback 12-19-2009 01:43 PM




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