I get a empty shortcut, it don't have any target or icon, and the only way i can get this is if i remove the line:
if ($0 != 2) || ($lock(com)) return
so i used a ; to skip it, if that file remain nothing happens, and if i do: //echo -a $lock(com) i get the answer $false to it's not locked, so dunno what i doing wrong, if i understand your code right it should be used:
/createshortcut mirc.exe
or do i miss understand it?