Now, Use the following code, I can open the aototext file where this item is located by right-clicking.
However, there is no implementation of positioning to the subfunction, how to Search for item text in the QM Code Editor
e.g: search A I'm in the line 1 Note: There is a space in front
-------------------------------------------------------------------------------------------------
messages3 add:
case NM_RCLICK ;;on right click of listview item
i=SendDlgItemMessage(hDlg 3 LVM_GETNEXTITEM -1 LVNI_SELECTED)
str ss.getl(text i)
out ss
DT_EndDialog hDlg 1000
n=EnumQmThreads(0 0 0 0)
ARRAY(QMTHREAD) a.create(n)
for _i 0 EnumQmThreads(&a[0] n 0 0)
_s.getmacro(a[_i].qmitemid 1)
mac+ _s
Todo:
1.In the QM Editor, search for the text of the right-clicked item
2.Highlight flashes to show it
about:
_s.getmacro(a[_i].qmitemid 1)
Because it is possible that other functions will also running, Which number should I set? 34?
--------------------------------------------------------------------------------------------------------
getmacro([$macro|iid] [what]) ;;`Gets macro text, name, etc.` what: 0 text, 1 name, 2 trigger.
Obsolete what: 3 type ("0" macro, "1" function, "2" menu, "3" toolbar, "4" autotext, "5" folder, "6" member, "7" file link), 4 disabled, 5 encrypted, 6 shared, 7 id, 8 read-only.
However, there is no implementation of positioning to the subfunction, how to Search for item text in the QM Code Editor
e.g: search A I'm in the line 1 Note: There is a space in front
-------------------------------------------------------------------------------------------------
messages3 add:
case NM_RCLICK ;;on right click of listview item
i=SendDlgItemMessage(hDlg 3 LVM_GETNEXTITEM -1 LVNI_SELECTED)
str ss.getl(text i)
out ss
DT_EndDialog hDlg 1000
n=EnumQmThreads(0 0 0 0)
ARRAY(QMTHREAD) a.create(n)
for _i 0 EnumQmThreads(&a[0] n 0 0)
_s.getmacro(a[_i].qmitemid 1)
mac+ _s
Todo:
1.In the QM Editor, search for the text of the right-clicked item
2.Highlight flashes to show it
about:
_s.getmacro(a[_i].qmitemid 1)
Because it is possible that other functions will also running, Which number should I set? 34?
--------------------------------------------------------------------------------------------------------
getmacro([$macro|iid] [what]) ;;`Gets macro text, name, etc.` what: 0 text, 1 name, 2 trigger.
Obsolete what: 3 type ("0" macro, "1" function, "2" menu, "3" toolbar, "4" autotext, "5" folder, "6" member, "7" file link), 4 disabled, 5 encrypted, 6 shared, 7 id, 8 read-only.