Way to log the MQ window?

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

Unknownbot
decaying skeleton
decaying skeleton
Posts: 8
Joined: Tue Nov 18, 2003 10:18 am

Way to log the MQ window?

Post by Unknownbot » Mon Feb 02, 2004 8:53 am

I'm looking for a way to log everything in the MQ window. Using the /mqlog command seems to just make a entry in the log file of whatever text I enter after it. Is there a function built in that turns a log on / off that I am somehow missing?

Thanks!

Gumby
a ghoul
a ghoul
Posts: 99
Joined: Sat Jan 24, 2004 5:27 pm

Post by Gumby » Tue Feb 17, 2004 2:12 am

Had an idea after reading another thread here, but you could do something quick and dirty like this (tested) to log echo's:

Code: Select all

#turbo

#event MQLog "[MQ2]"

Sub Main
   :Loop
      /doevents
      /delay 100
   /goto :Loop
/return

Sub Event_MQLog(LogText)
   /mqlog "@LogText"
/return
Realistically could log whatever you wanted by setting up the triggers for MQLog in this example. AFAIK there's no global option to turn on / off logging in MQ but I might've missed it too.

Alternatively you could probably modify the source to write whatever MQ dumped to a window (or even add an option to log or not)... I know next to nothing about C/C++ unfortunately, but I'm guessing you could modify mq2chat.cpp to have OnWriteChatColor write out Stripped to a file inaddition to tossing it to the EQ window. Possibly do something similar to mq2chatwnd.cpp if you use that (szProcessed I think there). Someone who knows more about attempting this than I would have to confirm it, though if possible I would estimate it's a quick hack given text filewrites are a well known animal.

G