04-06-2007, 03:17 AM
I tried to do this with the following code:
str+ macro
str s
s.time("ddd',' MMM dd yyyy" "HH:mms")
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!
str+ macro
str s
s.time("ddd',' MMM dd yyyy" "HH:mms")
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!