Posts: 1,769
Threads: 410
Joined: Feb 2003
I'm lookin' for a way to trim down my macro list and would like to get rid of some of my macs that i haven't used in a while.
is there a way to find out when you last ran a macro?
Posts: 12,147
Threads: 143
Joined: Dec 2002
Posts: 1,769
Threads: 410
Joined: Feb 2003
rats...
Posts: 1,000
Threads: 253
Joined: Feb 2008
I would say that you could put in all your macros some code that would write to a log. That way you could start monitoring now what macros you are using.
Maybe this could get added to the wish list for QM.
Posts: 1,058
Threads: 367
Joined: Oct 2007
This is a short code I use for this purpose :
str si.getmacro(getopt(itemid) 1)
if ideb; out "%s : %s" Now(0) si
You may redirect output to any logfile.
Now() is a current time output function :
Function
Now
;\
function~ [int'sw] [str&sdatim]
;Calling : out Now(0)
str sval s s1 s2
s.time
sel sw
;Date & Time
,case 0
,,sval=s
,,s1.time("yyMMdd")
,,s2.time("gg" "HHmmss")
,,s2.ltrim(" ")
,,s1 + s2
;Date
,case 1
,,sval.left(s 8)
,,s1.time("yyMMdd")
,case 2
;Time
,,sval.right(s 8)
,,s1.time("gg" "HHmmss")
,,s1.ltrim(" ")
,,
,case else
,,s.from("Illegal value : " sw)
,,mes s "Now"
if getopt(nargs)=2; sdatim = s1
ret sval