!BEWARE! !BEWARE! Deletes post on answer
Reputation: 0
Joined: 26 Jun 2013 Posts: 57 Location: !BEWARE!
|
Posted: Fri May 01, 2020 4:04 pm Post subject: Changing value - speak text & autoAttach problem |
|
|
Looking for way how to make speak text when value is changing in game, not by hotkey.
Second question, when starting game have auto attach process in Lua script by this command:
Quote: | PROCESS_NAME = 'Game.exe'
--------
-------- Auto Attach
--------
local autoAttachTimer = nil
local autoAttachTimerInterval = 1000 ---- Timer intervals are in milliseconds
local autoAttachTimerTicks = 0
local autoAttachTimerTickMax = 5000 ---- Set to zero to disable ticks max
local function autoAttachTimer_tick(timer) ---- Timer tick call back
if autoAttachTimerTickMax > 0 and autoAttachTimerTicks >= autoAttachTimerTickMax then
timer.destroy() ---- Destroy timer if max ticks is reached
end
if getProcessIDFromProcessName(PROCESS_NAME) ~= nil then ---- Check if process is running
timer.destroy() ---- Destroy timer
openProcess(PROCESS_NAME) ---- Open the process
end
autoAttachTimerTicks = autoAttachTimerTicks + 1 ---- Increase ticks
end
autoAttachTimer = createTimer(getMainForm()) ---- Create timer with the main form as it's parent
autoAttachTimer.Interval = autoAttachTimerInterval ---- Set timer interval
autoAttachTimer.OnTimer = autoAttachTimer_tick ---- Set timer tick call back
-- see defines.lua and https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx |
Problem is when game restarting (closing process and instant restarting process again) but when it restart, cheatengine dont correct to new process and must attach it manually. how fix script to checking game process and auto correct while restarting game?
|
|