Message 1 of 10
Prevent command from running multiple times in a row, by fast clicking of user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Forum,
I have a command that initializes some stuff, which can take a few seconds, and then shows a dialog form.
Because the initialization can take a few seconds, the user can click the AutoCAD button (wich triggers the command) multiple times if he is fast enough. This results in being the command run multiple times in a row.
How can I prevent this?
I've tried checking "GetSystemVariable("CMDNAMES")" to see if the command is already running, but this does not work because the commands do not run simultaneously, but after each other.
Thank you.