Hello,
If a thread needs to create a temporary file, delete the file when it is finished. How to prevent a new same thread from starting again when the thread is not finished? This is not desirable if the second thread is not prevented from modifying the temporary file again.
The thread is launched from the context menu. Is there any other way besides temporarily disabling this context menu option? For example, a window showing the task in progress.
In other words, when there is a task busy, a window prompt is displayed, and after the task is finished, the window is closed.
Thanks.
How to prevent the creation of new threads? Topic is solved
Re: How to prevent the creation of new threads?
Hi, when I put it in a label of the context menu and right-clicked the menu twice, all the controls in the script lost their response. Where is it wrong?
Code: Select all
Gui, Add, ListView,, TEST
Menu, ContextMenu, Add, Open, Open
Gui, Show
return
GuiContextMenu:
Menu, ContextMenu, Show
return
Open:
Critical
Sleep, 3000
Msgbox OK
return
Last edited by afe on 12 Sep 2019, 11:19, edited 1 time in total.
Re: How to prevent the creation of new threads?
Where you prevent the creation of new threads!Where is it wrong?
Re: How to prevent the creation of new threads?
Click on the Open menu once and multiple right click again. The program will not display OK on time, and the CPU consumption will increase sharply. Why?
Re: How to prevent the creation of new threads? Topic is solved
Hallo,
replace Critical by Thread, Priority, 1
replace Critical by Thread, Priority, 1
Re: How to prevent the creation of new threads?
Thread, Priority, 1 work fine. Thank you!
Who is online
Users browsing this forum: Chunjee, Google [Bot], Joey5, mebelantikjaya and 322 guests