In the OnClick event use shellExecute(path to program, 'argument string') or shellExecute(path to program, 'argument string', process's working directory, number for how to show) eg.
Code:
local cedir = getCheatEngineDir() -- program files if not launched as trainer else path to extracted trainer files
local SW_SHOWMAXIMIZED = 3
local SW_SHOWMINIMIZED = 2
shellExecute('notepad', 'celua.txt', cedir, SW_SHOWMAXIMIZED)
-- notepad will almost certainly be in the PATH so it'd be found, other programs may not and you'd need to provide
-- the full path, use os.getenv for environment variables eg. windir and userprofile
-- https://msdn.microsoft.com/en-us/library/windows/desktop/bb762153%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
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