USB Uirt Help Please!

Having problems? Use this forum to find help!

Moderator: jrhees

USB Uirt Help Please!

Postby GreenAcres » Mon Feb 25, 2008 2:05 am

Working on getting usb uirt set up with Homeseer for use with my htpc, but the one thing I can't figure out is how to get it to repeat the key pressed when I hold down the button

Example pressing a button on the touch screen volume + to continue to raise volume. It will only send the key once until another is pressed.

Any help would be much appreciated.

Thanks

Thom
GreenAcres
 
Posts: 1
Joined: Mon Feb 25, 2008 2:01 am

Postby canoewhiteh2o » Mon Feb 25, 2008 1:14 pm

Below is the information that Jon provide when I asked the same basic question:

To perform indefinite (i.e., button is being held down until further notice) transmits, you will need to do the following:

1) To start transmission of the IR code, call TransmitIR() as you would normally but uses a repeatCount of 32767.
2) To stop the transmission, call TransmitIR() with a "" for the IRCode and a repeatCount of 0.

Please use this with care and be aware that you should never try to Close() the USB-UIRT without first ending a transmssion in progress.


I use this with my own app, so I am calling TransmitIR() directly through the API (usbuirt.dll). I am not sure how you get access to this functionality through Homeseer.

GaryB
canoewhiteh2o
 
Posts: 66
Joined: Thu Dec 28, 2006 1:52 pm


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 35 guests

cron