You have something else that interested me. Give this a shot. It will start checking when mirc starts or you do /autogame. It'll message the commands when it sees one of those two exes running and it won't message them repeatedly either. Let me know how it works out for you.

Code:
on *:start: .timerautogame 0 30 autogame

alias autogame {
  if ($chkprocess(CSGO.exe)) && (%autogame != csgo) {
    set %autogame csgo
    msg #pball !updatetitle CSGO Comp w/ oBeE
    msg #pball !updategame Counter-Strike: Global Offensive
  }
  elseif ($chkprocess(Dayz.exe)) && (%autogame != dayz) {
    set %autogame dayz
    msg #pball !updatetitle #Dayz PVP Elektro
    msg #pball !updategame DayZ
  }
  else set %autogame none
}

alias chkprocess {
  .comopen numMirc1 WbemScripting.SWbemLocator
  if ($com(numMirc1)) .comclose numMirc1 $com(numMirc1,ConnectServer,3,dispatch* numMirc2)
  if ($com(numMirc2)) .comclose numMirc2 $com(numMirc2,ExecQuery,3,bstr,SELECT Name FROM Win32_Process WHERE Name = $qt($1-),dispatch* numMirc3)
  if ($com(numMirc3)) {
    var %total $comval(numMirc3,0)
    .comclose numMirc3
    return %total
  }

  :error
  if ($com(numMirc1)) .comclose numMirc1
  if ($com(numMirc2)) .comclose numMirc2
  if ($com(numMirc3)) .comclose numMirc3
  return -1
}


http://scripting.pball.win
My personal site with some scripts I've released.