If you are using autoit to make your macro do this.
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
If ProcessExists("macroplayer*32.exe") Then
MsgBox(0, "You idiot!", "macroplayer*32 is already running.")
Exit 0
EndIf