Quote:
Find "Run, explore " in FolderMenu.ahk, it's where it opens a new explorer and explore to a folder.
Modify it to something like "Run, C:\totalcmd\totalcmd.exe ", then it will open the folder in total commander(i think).
Thank you, Rexx. This looks promising. Following this idea I modified two places in the script. At first, it seemed to work perfectly, and I was happily modifying totalcmd command line parameters. Then I noticed some problems.
(a) Some folders opened to where they should, and some didn't. This puzzled me until I realized that the issue was blank spaces in the path. Total Commander insists that if a path which is being used as a command line parameter has blank spaces, one has to put quotes around the path. So all I had to do to solve this issue was replace %ThisPath% with "%ThisPath%" and %SelectedPath% with "%SelectedPath%".
(b) Another problem is that the resulting script, instead of launching applications like UsefulScript.ahk or KeyNote.exe (for brevity, I am leaving out the full path to UsefulScript.ahk or KeyNote.exe or TotalCmd.exe), now simply opened up to the folder the particular application was in. This was puzzling. It turns out it has to do with the fact that, in the original script,
Run, explore, %ThisPath%,,UseErrorLevel
will reject %ThisPath% and set the ErrorLevel
if %ThisPath% is UsefulScript.ahk or KeyNote.exe,
and the script then goes on eventually to
Run, %ThisPath%,,UseErrorLevel, which launches the application,
but in the modified script
Run, TotalCmd, "%ThisPath%,,UseErrorLevel will blithely go to the folder which the application is in.
I have not yet figured out how to deal with this. I think what I will have to do is have %ThisPath% tested to see if it ends in .ahk or .exe or .com or .htm or .html. The result of this test will then determine whether the script goes on to
Run, TotalCmd "%ThisPath%",,UseErrorLevel
or goes to
Run, %ThisPath%,,UseErrorLevel.
I might not get to this today, but I'll post when I either write some appropriate code or give up and ask for help!