I am working on a project that is for an image hosting site and I need to find a way so that when a function is called by the user hitting the hotkeys it will trigger a timer for x amount of seconds that will disable that function from being called.
I already have the function setup and the hotkeys all I need to add is disabling the function from being called inside the timer while it is ticking. Any ideas? Or is it possible?
Best Regards & Many Thanks, Aurora
The easiest way would be to set a Boolean Variable before you start your Timer then reset it in your Timer’s Tick EventHandler.
Something like this: