Thank you for this proposal but this could be just an option to be used as a parameter of the Exe to be modified before launch.
For exemple, we could run “software.exe /mode=debug” and it will call the page with this parameter and without this “option”, it just call the default address…
This could be useful in case of debug instead of keeping debug mode activated in the application.
So in your case, to detect parameters, you can modify the code above to:
// When the main window is going to be displayed (just before the homepage is shown).
if ParamStr(1) = "/mode=debug" then
SetGlobalVar("HomePage", "index.php?debugmode=1", false)
This is wonderful! Thank you so much, you make my day!
This is a great solution!
For those who would like to use this solution, I just added a shortcut to the application.exe and in the target part, I simply added /mode=debug
This is fantastic!
Thanks again and have a good day!