Any way to save current eventhandler option?
Posted: Wed Oct 02, 2019 11:35 am
What I would like to do is following:
What however worries me is that maybe I have another Eventhandler already done and now this would be replacing the old one, even I didnt mean to, since this one is meant to be in use only temporarily.
Therefore what I would need is something like this:
Is there any way to do this, and if not, then for a wish list an option to see and save what is current func for some event like OnMouseUp.
Code: Select all
InstallEventHandler(OnMouseUp, Function () Resume EndFunction)Therefore what I would need is something like this:
Code: Select all
funcforsafekeeping = CurrentEventHandler(OnMouseUp)
InstallEventHandler(OnMouseUp, Function ()
InstallEventHandler(OnMouseUp, funcforsafekeeping)
Resume()
EndFunction)