Add your idea or search for answers in existing topics. The most popular ideas will be implemented faster!

We have moved our support service to a new technical support system. Since 17.01.2022, we have disabled the ability to create appeals through the userecho personal account. Now all requests are processed via mail to support@iridi.com .

Thank you for your understanding and have a nice day.

0
Answered

Cyclic repetition of functions

Alexey Grishanin 10 years ago in iRidium Script / Interface scripts updated by Oksana (expert) 10 years ago 2
Hello,
Please explain why in the following script:

function byte1(val)
{
return val >>> 24
};

function ReadEvent(val)
{
IR.Log("byte value 1: "+ byte1(val));
};

function WriteLog ()
{
IR.Log("message")
};

IR.AddListener(IR.EVENT_START,0,function()
{
IR.SetInterval(5000,WriteLog);
IR.SetInterval(5000,ReadEvent(1830317336));
});

the ReadEvent function does not work in cycles (every 5 seconds)? WriteLog works in cycles, the code is executed each 5 seconds.
0
Answered

​Is it possible to use a usb joystick for controlling purposes (for windows 8/10)?

gert korf 9 years ago in iRidium Script / Interface scripts updated by Ekaterina (head of support) 9 years ago 1

I have PTZ ip-cameras which I can control by AV and Custom driver (HTTP), but instead of a virtual joystick I would like to use a (Microsoft HID-compliant) joystick.


Is there a script available for this or do I need to use a joystick to key mapper and use a editbox?


0
Answered

Bubble popup with slider...

Andrey Honich 10 years ago in iRidium Script / Interface scripts updated by Oksana (expert) 10 years ago 8
Hallo,
Is there some way to show automatic bubble popup with numerical value when I move slider on mobile devices?
The point is the slider control is quite small, and when I put finger on it i cannot see anything under it, I even don't know either I hit control or not. Also quite often I need numerical control for some precise adjusting in several percents.

If it's not possible in current version, can I expect to see this feature in some near future I2 release please?

Please check OpenRemote sliders as reference.

slider1.jpg
slider1.jpg_thumb
0
Answered

Password editbox

Giljan 11 years ago in iRidium Script / Interface scripts updated by Oksana (expert) 10 years ago 7
Hello,

Is it posssible to use an editbox as an password field, so it displays bullets instead of text?
0
Answered

"Freezing" static list when pressing button until button release.

TuomoHautala 9 years ago in iRidium Script / Interface scripts updated by Ekaterina (head of support) 9 years ago 4

I have static list on my project for PC and i have buttons with press and release event. When I move cursor out from button while pressing the button, static list moves and now when i release, it wont send relase command. So can i remove "drag static list" event when pressing on button so static list will not move, and put "drag static list" event back when releasing button?

0
Completed

Android: screen brightness adjustment doesn't work

Эмиль Боев 10 years ago in iRidium Script / Interface scripts updated by Ekaterina (head of support) 10 years ago 1
If one try to adjust brightness: 

IR.SetVariable("System.Display.Bright", 0);

it will not work on Android.
It works perfect on iOs.
Answer
This function works only on iOS, it is correct. You can see this information in API:
http://wiki2.iridiummobile.net/Tokens_API#Get_Data_about_Device_Display
0
Completed

Menu opened by a gesture

Ekaterina (head of support) 10 years ago in iRidium Script / Interface scripts updated by Эмиль Боев 9 years ago 13
In the project below you can see how to create the navigation menu for the project for smart phone. The menu gradually appears from the left side of the screen by clicking the button in the corner of the screen or with the left-to-right gesture. You can close the menu with a gesture or by clicking on a visible area of the opened page (at that none of the buttons on the page will be clicked)

To use the menu in your interface, drag the example in your project (by the name) and edit the script with respect to the comments.
0
Answered

Image size

Jan Hein Liebregts 12 years ago in iRidium Script / Interface scripts updated by Oksana (expert) 10 years ago 2
Hello,
When I have an javascript with:
[font=courier]IR.GetItem("Page 1").GetItem("Button").GetState(0).Image = "pict.jpg";
It ads an image to the button.
When I ad:
IR.GetItem("Page 1").GetItem("Button").Width = 500;
IR.GetItem("Page 1").GetItem("Button").Height = 100;
It changes the button size, but not the image size.
How can I change the image size in the javascript?
Jan Hein
0
Completed

Building graphs

evg 10 years ago in iRidium Script / Interface scripts updated by Ekaterina (head of support) 10 years ago 1
Project with example of building graphs.
Graph.irpz

All suggestions on optimization and improvement are welcome.
0
Under review

Project crash because of script created joystick item

r riksma 10 years ago in iRidium Script / Interface scripts updated by Ekaterina (head of support) 10 years ago 1
If you create a joystick item to use as a color picker by using a script, the project crashes when you click on the joystick. This is only in windows, on an iPad it works fine.
To reproduce:
-download your demo project:
https://s3.amazonaws.com/iRidiumWiki2.0/i2Scripts/JS_Iridium_demo_EditItem.irpz
-make sure you can click on the joystick by placing the code last or removing the other items.
-click and watch it crash.

Tested Editor versions:
V2.1.2.16841
V2.2.1.17647

Answer
Yes, you are right, the Joystic created via the script doesn't work for now.
It happens because the default value of MaxX and MaxY is zero, when you create it via the script, and you cannot change it. Now you cannot use CreateItem function for the Joystic, but we'll find a solution. Thank you.