Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
All menu items often become ineffective
#3
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     Help - how to add the trigger to the macro
Code:
Copy      Help
;/
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 -2

Function LA_FF
Code:
Copy      Help
function# iid FILTER&f

if(wintest(f.hwnd "LibreAutomate" "HwndWrapper[Au.Editor;*")) ret iid
ret -2


Menu NP2
Trigger #R //FFC_NP_Editor     Help - how to add the trigger to the macro
Code:
Copy      Help
te :'Ca * findacc.ico
te :'Cx * findacc.ico
Function FFC_NP_Editor
Code:
Copy      Help
;/

function# iid FILTER&f

if(!f.hwnd2) ret -2
if(!wintest(f.hwnd "" "Notepad*")) ret -2 

if(GetWinId(f.hwnd2)=15) ret iid 
if(GetWinId(f.hwnd2)=64259) ret iid 


ret -2


Messages In This Thread
RE: All menu items often become ineffective - by Davider - 02-26-2024, 09:42 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)