Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running count of macro triggering, cursor mileage, clicks
#1
Hi All,
I love QM and have created many handy items. I need to get a running count of how many times various macros are being triggered so I can compare to old "pre-qm" days. Also any way to keep running log of cursor mileage or # of clicks? Again, for efficiency comparison?
Thanks so much.
S
#2
QM cannot provide this statistics.
#3
you can keep a log of your macros if you put some code in front to drop the time date into a file along with the name of the macro.
An old blog on QM coding and automation.

The Macro Hook
#4
I tried to do this with the following code:
str+ macro
str s
s.time("ddd',' MMM dd yyyy" "HH:mmConfuseds")
run "Z:\QM\Macro Log.txt" "" "" "" 16
act win("Macro Log - Notepad" "Notepad")
'C(VK_END)
outp macro
'T
outp s
'Y
'Af
's
'A{F4}


I intended to have the macro be assinged the macro that I wanted logged by placing a macr.getmacro function in the actual macro.
2 problems however:

First, I couldn't use the getmacro string to properly recognize the current macro (I think default "" populates the string with the macro open in the editor but notthe macro that is running.

Second, it kind of worked but kept on putting the same previous macro used over and over again in the log. Do I need a kind-of clear string phrase?

Thanks for your input!
#5
instead of having something look at running macros.
how about putting this in the front of every macro you want to log.

Code:
Copy      Help
str a="macro name here[]"
a.setfile("c:\logfile.txt" -1)
An old blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 2 Guest(s)