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:
Pronto Script Macro
This thread has 4 replies. Displaying all posts.
Post 1 made on Thursday March 5, 2009 at 12:37
skeltonmfc
Lurking Member
Joined:
Posts:
March 2009
2
Hi im quite new to prontoscripts and was wondering if any 1 can help, what i need to do is get my movie buttton to start a macro but one thing i need it to do is go to my dynalite lighting script thats controlling my projecting screen and tell my screen to go down then, do all the easy ir stuff such as turn the amp etc

any help would be great thanks

OP | Post 2 made on Thursday March 5, 2009 at 14:06
skeltonmfc
Lurking Member
Joined:
Posts:
March 2009
2
I have checked some other post and i think im supposed to be writting this, CF.widget("Button2,1","dynPage1","dynAct").executeActions();

but it doesnt seem to work button2,1 is the widget (got this from the actions page in the button in the dynalite pronto script im trying to trigger) dynpage is the page name (i got this from the advanced tab under prontoscript name: on the page the button is located on within the script, and dynact is the activity i got this for (i got this from the advanced tab pronto script name: in the activity properties page within the dynalite pronto script

so maybe im getting something wrong please help!!
Post 3 made on Thursday March 5, 2009 at 14:34
dave964
Long Time Member
Joined:
Posts:
January 2008
172
I'm not sure - but from your post I think that Button2,1 has prontoscript on it, and you are trying to run that prontoscript from somewhere else by calling executeActions()?

If so - you can't do that. You cannot execute a buttons prontoscript from anywhere except when the button is pressed.

If that is what you are trying to do, you have two choices. The easy (but bad) way :

Copy the prontoscript from that button to your movie button.

The harder (but good way) :

Move the prontoscript for Button2,1 somewhere else (e.g. at an Activity level) wrapped inside a function - and call that function from the Movie button and from your existing dynalite button.

Obviously option 2 only works if your movie button and your dynalite button are on the same device / activity. If they're not, you really may as well just copy the button script.
Dave
Post 4 made on Thursday March 5, 2009 at 19:14
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
Dave is correct. You cannot execute prontoscript on a button that you do not physically press on the screen (using links in PEPv1).

Also, ProntoScript is not "shared" between activities. That is, when you leave one activity to go to another and the return to previous, any state of previous activity is lost and it restarts from scratch unless you somehow save/restore state using System.setGlobal()/getGlobal().

If you need your screen control and some other script active concurrently and don't want to do what I suggest above, you need to "merge" 2 activities moving pages, copying/merging activity script as needed to make a single activity that contains pages from both of your original activities.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 5 made on Thursday March 5, 2009 at 19:16
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
FYI, also, for common "chunks" of code that you might want to reuse throughout your config, consider putting said code into a panel label and then doing from the activity/page script...

this.eval(CF.widget('mypanelscript','scriptspage','scriptsactivity').label);

This will compile the script in the panel label including any var or functions and make them avaiable in the current PS Object (button, page or activity).

Search for last 2 years for +eval( and you can read more about the possibilities.
Lyndel McGee
Philips Pronto Addict/Beta Tester


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