could I ask you why you want to catch a click event on a timer script?
Correct me if I miss understood, what you want to achieve is the following :
- create a tag (client or gateway) storing a bool value, we call the tag Trigger
- we assume that the value of Trigger is False
- now when you click a button you need to set the tag Trigger to True
- at one point your client timer script will fire up, verify if Trigger is True, do some work, then reset the tag.
Is this your aim?
From your post, I personally understood that you want a timer script, continuously running, verify if in that moment a click occurred, but I don’t think it works that way. (I may be wrong, and If I am I will be more than happy to learn something new)
MouseClicked is an event, not a property, so you don’t have access to his state.
The Mouse Clicked Event get triggered by a click, and if you don’t catch it from the Event Handlers->mouseClicked script, you will loose it.
I think the strategy here will be catch the click event, store the information in a tag, and then from your timer script read the value previously stored in your tag and act accordingly.