Posted: Sat Aug 31, 2013 11:16 pm Post subject: OpenDialog Return null (nil)
Hello guys.
I try to use OpenDialog to get the game executable file path to run it from my trainer but after select exe file, OpenDialog return nullable value and nothing happened. I use this code:
Code:
GameName = "MyGame";
function LaunchClick()
local osDisk = os.getenv( "SystemDrive" );
MyPath = osDisk.."\\Windows\\Temp\\";
filetolaunch=openDialog_execute(Trainer_OD);
if filetolaunch~='' and filetolaunch~=nil then
settingsFile = io.open(MyPath..GameName..".ini", "w");
if (settingsFile ~= nil) then
settingsFile:write(filetolaunch);
settingsFile:close();
end
control_setEnabled(Trainer_btnClean, true);
createProcess(filetolaunch);
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