Message 1 of 3
DoEvents and cursor - How to allow user to continue working during macro

Not applicable
02-08-2019
12:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I’m stuck with an issue on my macro.
I’m waiting for an user input (a particular shortcut). So I infinitely loop waiting for this and I add a DoEvents inside the loop.
Do Until (GetAsyncKeyState() And GetAsyncKeyState()) DoEvents If GetAsyncKeyState() then # code here
End if Loop
When I do that, I can control and move the view, however I don’t have any cursor and can’t select or draw anything.
Is there a way to allowed the user to continue working during the macro ?
Thanks in advance,
Regards,
Paul