Posted: Thu Feb 24, 2022 3:20 am Post subject: Extension install
So i'm working at code that will install selected extension in open dialog to autorun folder and execute it(user's choice)
code:
Code:
function moveAndExecuteExtention()
local this = createOpenDialog()
this.Execute()
local t = io.open(this.FileName)
os.rename(this.FileName,getCheatEngineDir())
if messageDialog("Execute extention?",mtConfirmation,mbYes,mbNo) == mrYes then
loadfile(this.FileName)
end
end
Your trying to rename a file to the CE folder location/name, you need the file name for the second parameter to use rename to move a file. _________________
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