Some Macros...

Moderator: Moderators

Message
Author
Amarock
Noob
Noob
Posts: 8
Joined: 26 Jun 2010, 15:37
Noob?: Yes
Location: France

Some Macros...

#1 Post by Amarock »

Hello,

I will notice in this thread some part of my macros that could be usefull for other people.

Write a specific log file:

Code: Select all

macro TestLogFile {
	LogFile("[$.datetime] - $.map \@$.pos : Hello Word\n")
}

sub LogFile { 
	open(FILE, ">>:utf8", "$Settings::logs_folder/macro.txt");
	print FILE $_[0];
	close(FILE);
}