About the pause function for repetitive tasks
- December 18, 2024
- 2 replies
- 1593 views
Hi,
I am trying to implement a repetitive tasks that opens a listed drawing in a new window and exports it in a different format. and that it can be stopped during repetitive tasks.
Work scenario)
The repetitive tasks is implemented with a "for" loop, and the task of opening and exporting the drawing is temporarily implemented with the "EmptyWindowCreateAndDelete" function.
use a window procedure to respond to the user to stop during the task. When the window procedure window is closed, the loop stops.
This function is effective in loops. The TEST2 function works only with the loop without EmptyWindowCreateAndDelete, and when the user closes the window, the loop seems to stop in the middle.
However, when used with a function that creates a new window like EmptyWindowCreateAndDelete, the window procedure does not respond to the user's click.
Is there a better way to stop during the looping task, or is there a way to make the window procedure respond to the user's click even when a new window is created?
Note. I have attached the video and the entire code.

