<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="24">
  <Forms>
    <UDF1 Class="TCEForm" Encoding="Ascii85">J/qXj!Y}j9.KK%Dpi*I82DXfys(=w$)3Am^2vT*6(e2#3zQ_l3sBhB.:mRw+G1K_1U+E5L9suN7]WWTOYfAn!^8+):!wnu.^;t$h=N]ZyWlpvHfzhWexRfx65=!,.H+VuMNoCP-2,z7TWMR[KFW:1MCgIUFh)##4zZ8hO-v5KEzu4C3.)d,A9/7NpPX@CtmFvUS7w825sD_I?16Hb@J-!V1ZHw/ZT$ERP^-#eDzZ1tRWHgM$G$qFm3035yk+RiA%rfnpTiP!+=UqYOHO2n</UDF1>
  </Forms>
  <CheatEntries/>
  <UserdefinedSymbols/>
  <LuaScript>UDF1.show()

function getProcessNameFromID(processId)
  local processName = nil
  local list = createStringlist()
  getProcesslist(list)
  for i = 0, list.Count-1 do
    local id, name = list.String[i]:match("(.*)-(.*)")
    if processId == tonumber(id, 16) then
      processName = name
      break
    end
  end
  return processName
end


game_check_list = createStringlist()

function game_check()
getProcesslist(game_check_list)
local count = 0
for i=0,game_check_list.count-1 do
if game_check_list[i]:find("firefox") then  --- change firefox to your game name
count = count + 1
end
end
if count &gt; 1 then
UDF1.CELabel1.Caption = "Game not detected"
UDF1.CELabel1.Font.Color = 0x0000FF
beep()
else
openProcess("firefox.exe")   -- Specific Process Name input here
local id = getOpenedProcessID()
local name = getProcessNameFromID(id)
UDF1.CELabel1.Caption = "Opened : " ..name.. " - PID : "..id
UDF1.CELabel1.Font.Color = 0x009900
end
game_check_list.clear()
end

--fl_check_t=createTimer(nil)
--timer_onTimer(fl_check_t, cecheck)
--timer_setInterval(fl_check_t, 200)
--timer_setEnabled(fl_check_t, true)


UDF1.CEButton1.onClick = game_check
</LuaScript>
</CheatTable>
