{$lua} if syntaxcheck then return end [ENABLE] local PROCESS = ".exe" local function autoAttach() local gameID = getProcessIDFromProcessName(PROCESS) if gameID and gameID ~= getOpenedProcessID() then openProcess(PROCESS) -- If unity game, uncomment below -- LaunchMonoDataCollector() end end autoAttachTimer = createTimer(createForm(false)) autoAttachTimer.Interval = 2000 autoAttachTimer.OnTimer = autoAttach [DISABLE] if autoAttachTimer then autoAttachTimer.destroy() autoAttachTimer = nil end