Page 1 of 1

[HELP] Select Combo box list + button = open file

Posted: Mon Mar 27, 2017 4:32 pm
by Almaftuchin
Hello, i made form and add some cetrainer in cheat engine, then i want to my form functional.
For example if select trainer1 then click open button, there will open the trainer1.cetrainer file
pls fix with my CT example and Cetrainer below:
[Link]

Re: [HELP] Select Combo box list + button = open file

Posted: Mon Mar 27, 2017 5:19 pm
by FreeER
After a little playing around I ended up with this: [Link]

Can't necessarily say it's the best way to do it but it seems to work (there's probably a way to delete any saved files from the temp directory when it's closed but at the same time I'm kind of hoping that windows knows how to manage cleaning that up...). I don't know of any way to directly create a process from an executable saved inside of the ct/cetrainer, so using the temp directory was necessary.