Sending IR code to USB port

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
petero
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 59
Joined: Sat Jan 20, 2007 4:09 am

Sending IR code to USB port

Post by petero » Sun Oct 18, 2009 5:29 pm

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.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Mon Oct 19, 2009 9:21 am

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

petero
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 59
Joined: Sat Jan 20, 2007 4:09 am

IR codes

Post by petero » Mon Oct 19, 2009 4:57 pm

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?

petero
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 59
Joined: Sat Jan 20, 2007 4:09 am

Applescript in Rev

Post by petero » Mon Oct 19, 2009 5:02 pm

Is there anything special that has to be done in Revolution to execute an Applescript?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Mon Oct 19, 2009 5:03 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Mon Oct 19, 2009 5:09 pm

petero,

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

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Mon Oct 19, 2009 7:20 pm

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

Post Reply