Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automate macros/elements within quick macros
#2
To open a QM item and expand its folder:
Macro Macro1845
Code:
Copy      Help
mac+ "Function1"

To replace text of a QM item with possibility to Undo:
Macro Macro1845
Code:
Copy      Help
str macro="Function1"
str addText="more text"
str s.getmacro(macro)
s.addline(addText)
s.setmacro(macro)

To get tree view control handle of the QM items list:
Macro Macro1845
Code:
Copy      Help
int htv=id(2202 _hwndqm)
To get tree view control item handle of a QM item:
Macro Macro1845
Code:
Copy      Help
QMITEM q
int iid=qmitem("New Folder" 0 q)
if(!iid) end "not found"
out q.htvi
With these handles you can use tree view control messages to scroll, expand, etc. Documented in MSDN Library.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)