I’m designing for a touch screen and want to use the mouse pressed and mouse released events. I only want the event scripts to run if the mouse has been pressed for at least 250 ms. Is there a way to count the time a mouse button has been held down? Also, how can I pass a variable from the mousePressed event to the the mouseRelease event.
You can retrieve the current time with system.date.now() in mousePressed and place it in a client property, then retrieve that in mouseReleased to check the duration. Something like this, mousePressed:
Hello, it is interesting, and I think useful. I am beginner for the scripting. I try to found in some more information about functions putClientProperty and getClientProperty on webpage docs.inductiveautomation.com, but I didn’t found the description of these functions.
Please can send link where the functions are described.