Posted: Mon Mar 24, 2014 12:05 pm Post subject: Open CT via LUA
I want o make a script that will get called from them main.lua and will link known CT with applications/game.
I’m trying to open a CT using a LUA command. I successfully opened it using the shellExecute command but I get two open-windows and the closeCE command closes all the cheat-engine windows.
Code:
local root = [[D:\Libraries\Documents\My Cheat Tables\]]
local apps = {
age3 = "Age of Empires III\\age3.CT"
}
timer_monitor_apps = createTimer(nil,true)
timer_monitor_apps.Interval = 2000
timer_monitor_apps.onTimer = function()
for appName,appPath in pairs(apps) do
appName = appName .. ".exe"
if getProcessIDFromProcessName(appName)~=nil then
shellExecute(root..appPath)
openProcess(appName)
timer_monitor_apps.Enabled = false
end
end
end
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum