Hi everyone: There is something really confused me for a long time with CHDKPTP,why this software needs two consoles ,one is the black one with "starting gui...",one that in the client named "Console".why can't just use one consoles to show all the message? i am just curious about this.......
Quote from: cdg on 11 / August / 2016, 08:05:54Hi everyone: There is something really confused me for a long time with CHDKPTP,why this software needs two consoles ,one is the black one with "starting gui...",one that in the client named "Console".why can't just use one consoles to show all the message? i am just curious about this.......Because I'm lazy, mostly. The GUI is optional, the same chdkptp executable can run as a purely command line app by starting -i (or other command line options)On windows the easiest way to accomplish this is by building it as a console app, which means the command prompt style console appears by default.Additionally, because the GUI is optional, it's started quite late in the program. After startup, all the output should appear in the GUI console area, but there are a few things that can produce output before the GUI started.
so it's easy to let the command prompt style console disappear??
Do i need the source code ?
chdkptp
createobject("WScript.Shell").run "gui.cmd", false
Under Windows you can use a simple vbs hack to hide the cmd console. Make a cmd file for the chdkptp GUI start, e.g. gui.cmdCode: [Select]chdkptp And than make a vbs file with the following code:Code: [Select]createobject("WScript.Shell").run "gui.cmd", falseRun this script for starting the GUI.msl
Quote from: cdg on 19 / August / 2016, 02:08:37so it's easy to let the command prompt style console disappear??I don't know. The console doesn't bother me so I haven't spent any effort trying to remove it.QuoteDo i need the source code ?I'd certainly recommend that over hexing the binary. It's possible that just rebuilding it as a gui app is enough, but you still need the source for that.
Started by Knuckx Hotwire! Hardware Mods, Accessories and Insights
Started by toby LUA Scripting
Started by JvdP « 1 2 » General Discussion and Assistance
Started by axman General Help and Assistance on using CHDK stable releases
Started by Elbourne General Help and Assistance on using CHDK stable releases