Any way to check what InstallEventHandler func is active and which display is active?
Posted: Tue May 20, 2025 1:54 pm
I am trying to bug hunt a bug that is related to having several Displays open at same time, and when I keep clicking on them, something strange is happening.
What I am currently thinking is if there would be a way to do two things.
1. To see which display is active. I could use interval function which would constantly keep printing which display is the active one.
2. When using InstallEventHandler({OnMouseUp = Function() EndFunction)}, is there any way to see which Function is currently installed?
As in, I could for example make all the functions print a line telling they are "func1", "func2" etc. but is there a way to for example manually execute what ever is installed to InstallEventHandler({OnMouseUp}) as example.
Point being that what I do know about the bug so far, is that it happens when I keep changing from one display to another, and strangely it seems like one InstallEventHandler({OnMouseUp}) stays erroneously on, even I cant see how that is possible, since I am using OnMouseUp=0 elsewhere on the code in such way that I cant see how it could still be on.
For this reason I would like to keep checking live if OnMouseUp is having what Function to execute, as well as seeing which display is activated, since I am thinking it might be executing one of the OnMouseUps somehow to one of the wrong displays.
What I am currently thinking is if there would be a way to do two things.
1. To see which display is active. I could use interval function which would constantly keep printing which display is the active one.
2. When using InstallEventHandler({OnMouseUp = Function() EndFunction)}, is there any way to see which Function is currently installed?
As in, I could for example make all the functions print a line telling they are "func1", "func2" etc. but is there a way to for example manually execute what ever is installed to InstallEventHandler({OnMouseUp}) as example.
Point being that what I do know about the bug so far, is that it happens when I keep changing from one display to another, and strangely it seems like one InstallEventHandler({OnMouseUp}) stays erroneously on, even I cant see how that is possible, since I am using OnMouseUp=0 elsewhere on the code in such way that I cant see how it could still be on.
For this reason I would like to keep checking live if OnMouseUp is having what Function to execute, as well as seeing which display is activated, since I am thinking it might be executing one of the OnMouseUps somehow to one of the wrong displays.