Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Macro Last Run date/time
#1
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?
An old blog on QM coding and automation.

The Macro Hook
#2
no
#3
rats... Sad
An old blog on QM coding and automation.

The Macro Hook
#4
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.
#5
This is a short code I use for this purpose :

Code:
Copy      Help
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
Code:
Copy      Help
;\
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


Forum Jump:


Users browsing this thread: 1 Guest(s)