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.
Cyclic repetition of functions
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.
Is it possible to use a usb joystick for controlling purposes (for windows 8/10)?
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?
Bubble popup with slider...
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
Password editbox
Is it posssible to use an editbox as an password field, so it displays bullets instead of text?
"Freezing" static list when pressing button until button release.
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?
Android: screen brightness adjustment doesn't work
IR.SetVariable("System.Display.Bright", 0);
it will not work on Android.
It works perfect on iOs.
http://wiki2.iridiummobile.net/Tokens_API#Get_Data_about_Device_Display
Menu opened by a gesture
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.
Image size
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
Building graphs
Graph.irpz
All suggestions on optimization and improvement are welcome.
Project crash because of script created joystick item
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
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.
Customer support service by UserEcho