Page 1 of 1

USB Uirt Help Please!

PostPosted: Mon Feb 25, 2008 2:05 am
by GreenAcres
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

PostPosted: Mon Feb 25, 2008 1:14 pm
by canoewhiteh2o
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