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

Login:
Pass:
 
 

Topic:
Questions to Prontoscript
This thread has 3 replies. Displaying all posts.
Post 1 made on Saturday February 9, 2008 at 07:35
pukmarin
Lurking Member
Joined:
Posts:
February 2008
8
Hello,
I'm new and this is my first thread.
I want to control a relaiscard using rs232. I'm ready in doing it without Prontoscript, but I want to add mor functions. So I need a onHold and onRelase function for a button.
Please help me with the script. My idea is:

onHold = function()
{
Link To Relaiskarte - Codes - 1-1
}

onRelease = function()
{Link To Relaiskarte - Codes - 1-0
}

Is it possible to put in Links from Prontoscrit to a Page of a Device or do I have to send the rs232 code with Prontoscript?

Thanks you for your help.
Thorsten Heyna from ControLED Berlin
Post 2 made on Saturday February 9, 2008 at 08:15
Deaky
Long Time Member
Joined:
Posts:
August 2007
53
You can link to buttons in a device using pronto script. Make sure that you have tagged the button, its page and device then refrence it as follows


CF.widget("BUTTON" , "PAGE" , "DEVICE").executeActions();

so your script would be something like

onHold = function()
{
CF.widget("1-1" , "CODES" , "RELAISKARTE").executeActions()
}

onRelease = function()
{
CF.widget("1-0" , "CODES" , "RELAISKARTE").executeActions()
}
OP | Post 3 made on Saturday February 9, 2008 at 18:51
pukmarin
Lurking Member
Joined:
Posts:
February 2008
8
Great stuff, thx. It's working now :)

Is there also a function like "onPress" to only send the code once or do I have to use onHold and work with a counter if I don't want the executeActions() to be repeated continuously?

Cheers,
Toto
Thorsten Heyna from ControLED Berlin
Post 4 made on Saturday February 9, 2008 at 20:11
Peter Dewildt
Loyal Member
Joined:
Posts:
July 2001
6,307
ExecuteAcrions only sends the code once.

There is no direct way to do a continuous press.

See the thread call "ExecuteActions()".
Peter
Pronto 1000 (retired), Pronto TSU7000, RFX6000 (retired)
Pronto 2xTSU9600, RFX9400


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse