Page 1 of 1

Sending IR code to USB port

Posted: Sun Oct 18, 2009 5:29 pm
by petero
I am working on an application that allows severely disabled children to control external devices. I have an IR transmitter (iRed/iTrans) connected to a USB port. The company's software allows sending IR codes to this device but I want to have my stack send them. Does anyone have some rev code examples that can facilitate this. Any and all suggestions will be appreciated. Thanks in advance.

Posted: Mon Oct 19, 2009 9:21 am
by Mark
Hi petero,

You'd better ask the developer of the product whether it is possible to use AppleScript or whether any sort of library for custom software is available.

Best regards,

Mark

IR codes

Posted: Mon Oct 19, 2009 4:57 pm
by petero
The host application does support Applescript. I assume that this means I can use Applescript calls from within Revolution.

What if I want to make a PC standalone as well?

Applescript in Rev

Posted: Mon Oct 19, 2009 5:02 pm
by petero
Is there anything special that has to be done in Revolution to execute an Applescript?

Posted: Mon Oct 19, 2009 5:03 pm
by Mark
Dear petero,

I'm unfamiliar with this product, but you might be able to use VBScript or perhaps send commands over a COM port. Doesn't the documentation included with the hardware and software say anything about that?

Best regards,

Mark

Posted: Mon Oct 19, 2009 5:09 pm
by Mark
petero,

You might want to read about the "do" command in the docs.

Best,

Mark

Posted: Mon Oct 19, 2009 7:20 pm
by bn
petero,
you might also search this forum for 'applescript' and look into the resource center in Runrev's Help Menu, in the section 'General' look for 'Controlling iTunes'. There are a couple scripts and you get the general idea of how it is done.
regards
Bernd