It might help if you use a script instead of a macro. The following js script
inserts the date and time for me:
// Constants:
module_name = "insert_date";
module_ver = "1.0";
menu_name = "Utilities";
function Init()
{
addMenuItem("Insert date (preformatted)", menu_name, "insert_date",
"Ctrl+Alt+d");
}
function insert_date()
{
var obj1 = newEditor();
try
{
obj1.assignActiveEditor();
}
catch(e)
{
//in case there is no window open:
return;
}
obj1.SelText(getVarValue("%Date%"));
}
[The formatting is fubar by the forum software, sorry.]
--
<http://forum.pspad.com/read.php?2,43500,43503>
PSPad freeware editor http://www.pspad.com