Code Red => AutoLISP (Vanilla / Visual) => Topic started by: roy_043 on May 21, 2014, 10:33:20 AM
Title: Problem with acet-sys-control-down inside while loop
Post by: roy_043 on May 21, 2014, 10:33:20 AM
Some acet-* functions have recently been added to BricsCAD and this may be a BricsCAD only issue.
I would like to use the acet-sys-control-down function inside a while loop to allow the user to interrupt a longish process. The function works but not inside a while loop. Am I missing something?
To test: Start the Test function and hold down the left mouse button and the Control key. Result: Only the mouse button action is detected.
Title: Re: Problem with acet-sys-control-down inside while loop
Post by: TMoses on March 14, 2015, 09:46:30 PM
Dear Roy,
indeed, the problem was introduced when switching to a WxWidgets based keyboard state function; but obviously, those functions are not reliable under high CPU load (or maybe need better handling from BricsCAD side).
Now I have fixed by additionally verifying the Windows API functions for keyboard state, and your sample code runs fine; not yet published, but likely in next BricsCAD update.
You should have sent a bug report - then I would have fixed it much earlier :-) Many thanks & many greetings !
Title: Re: Problem with acet-sys-control-down inside while loop
Post by: roy_043 on March 15, 2015, 01:55:07 PM
Thank you very much Torsten!
Title: Re: Problem with acet-sys-control-down inside while loop
Post by: ahsattarian on December 23, 2023, 07:44:00 PM