02-26-2024, 09:42 PM
I cannot reproduce it because I have many QM menu item trigger functions(Trigger QM menu items within a specified window or control). When the issue occurs, all menu items become inactive simultaneously.
The menu item trigger code looks like the following:
I use code (shutdown -2) to restart QM, which requires many QM functions containing C# code to regenerate DLLs.
Is there any other way to restart the functionality of QM menu items?
I've been stuck on this issue for a long time. Thank you very much
Function FFS_QM_Editor
Trigger #R //FFS_QM_Editor
Function LA_FF
Menu NP2
Trigger #R //FFC_NP_Editor
Function FFC_NP_Editor
The menu item trigger code looks like the following:
I use code (shutdown -2) to restart QM, which requires many QM functions containing C# code to regenerate DLLs.
Is there any other way to restart the functionality of QM menu items?
I've been stuck on this issue for a long time. Thank you very much
Function FFS_QM_Editor
Trigger #R //FFS_QM_Editor

;/
function# iid FILTER&f
;https://www.libreautomate.com/forum/showthread.php?tid=7365&pid=36283#pid36283
if f.hwnd2=GetQmCodeEditor
,;https://scintilla.sourceforge.io/ScintillaDoc.html#SCI_GETSELECTIONEMPTY
,if !SendMessageW(f.hwnd2 SCI.SCI_GETSELECTIONEMPTY 0 0)
,,ret "R1_QM"
,else
,,ret "R0_QM"
ret -2Function LA_FF
function# iid FILTER&f
if(wintest(f.hwnd "LibreAutomate" "HwndWrapper[Au.Editor;*")) ret iid
ret -2Menu NP2
Trigger #R //FFC_NP_Editor

Function FFC_NP_Editor
