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 3 made on Tuesday March 30, 2021 at 15:51
Fischi
Long Time Member
Joined:
Posts:
January 2011
114
On March 29, 2021 at 16:55, Lyndel McGee said...
You can turn it on/off. You cannot change the sound it makes without hacking the firmware or replacing the file jog.wav (Assuming you know how to putty into the Pronto).

Dev Guide.

A.1.1.8. activity.rotarySound
(available since application version 7.2.4)
Purpose
Controls the rotary click sound.
Read/Write : RW
Value : Boolean
When set to true (the default), turning the rotary wheel on the control panel will cause click
sounds to be played, if the rotary is enabled (Because of an action list assigned to the rotary in the
configuration file, or when an onRotary callback is set for the activity). When set to false, no
sound will be played.

CF.activity().rotarySound=(boolean);

Lyndel,
where do I have to put this "CF.activity().rotarySound=(false);

?

Here is my activity script (found here in the forum) :

var clickCount = 0;

onRotary = function(clicks)
{
var accClicks;
var absClicks = Math.abs(clicks);
if (absClicks > 2)
{
var temp = absClicks-1;
accClicks = parseInt( (Math.exp(temp))/temp);
if (clicks < 0)
{
accClicks = -accClicks;
}
}
else
{
if (clicks > 0)
{
accClicks = 1;
}
else if (clicks < 0 )
{
accClicks = -1;
}
else
{
n=0;
}
}
/*use the accelerated clicks (accClicks) */
if(accClicks)
{
var speed = 3;// Change the value here to change the scroll speed
clickCount += accClicks;

if(clickCount > speed)// Clockwise
{
clickCount = 0;
CF.widget("Right +","WidgetPage").executeActions();// Executes the actions of this

button when the rotary wheel is moved clockwise
}
else if(clickCount < -(speed))// Counter-clockwise
{
clickCount = 0;
CF.widget("Left -","WidgetPage").executeActions();// Executes the actions of this button

when the rotary wheel is moved counter-clockwise
}
}
};


Fischi


Hosting Services by ipHouse