Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 28 made on Sunday January 8, 2012 at 17:15
Stealth
Long Time Member
Joined:
Posts:
December 2003
72
On January 8, 2012 at 09:22, Guy Palmer said...
As per earlier in the thread, I'm not clear exactly what you are referring to when you talk about "TCP/IP". If it really is TCP/IP, as opposed to wifi RS232 or wifi extenders, then I think the logic is:

a. Try to send the TCP/IP command.

b. If this fails, assume that there is no TCP/IP connection and invoke the IR actionlist.

Guy, you are correct I do mean “TCP/IP” I have this bit working already using prontoscript. My problem is I’m not sure where to put the IR command. I assume I put it under the Actions tab for the button on the overlay “KeyA”? Having said that I also have prontoscript code on the same button so where would I tell the “remote control” to call which action with an if statement?

Here the prontoscript i'm using on "KeyA"

// 0 = Unshifted (low) 1 = Shifted (Caps)

if (keyboardState == 0) // Unshifted

CF.widget("KeyA", "Unshifted").scheduleActions(TCPCommand ("chars:Send Test1 Text!"));

else if (keyboardState == 1) // Shifted

CF.widget("KeyA", "Unshifted").scheduleActions(TCPCommand ("chars:Send Test 2 Text !"));


Hosting Services by ipHouse