Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Print macro
#1
How can I print a macro?
#2
Use some other program, for example WordPad. To copy rich text, use Ctrl+Shift+C.
#3
Ok.
#4
Function (or macro) PrintMacro:
Code:
Copy      Help
;Prints current macro using WordPad


spe 20

QMITEM q
int iid=qmitem("" 0 q 1|64) ;;get current macro properties

act id(2203 _hwndqm)
key Ca CSc CH ;;copy rich text

run "wordpad" "" "" "" 0x2800 "WordPad"

key Y Cv CH ;;paste

;header
outp "Macro: %s" q.name
outp "[]Trigger: %s  (%s)" q.triggerdescr _s.getmacro(iid 2)
outp "[]Code:"
key H; rep(3) key CS{RR}Cb HU ;;bold

key Cp ;;print
#5
Can you update to QM 2.3.0.1?
#6
No, but QM 2.3.0.2 itself will have Print command.
#7
Nice and useful routine. Neverthless, I get a runtime error (child window not found) on "act id(2203 _hwndqm)". I use 2.3.0.1. Please advise.
#8
This macro does not work with QM >=2.3.0.


Forum Jump:


Users browsing this thread: 1 Guest(s)