[WLX] AppLoader
Moderators: Hacker, petermad, Stefan2, white
Maximus, when I copy a file and get the overwrite confirmation dialog and press F3 apploader starts the designated program passing the source pathname. Is there any way to make apploader pass both the source and the target pathnames in the copy overwrite dialog? That would allow me to designate a custom file comparison program.
2) In general, of all the places where Apploader can activate a program, in which cases will it pass more than one filepath?
TIA
2) In general, of all the places where Apploader can activate a program, in which cases will it pass more than one filepath?
TIA
sgp
ListLoad(HWND ListerWin,char* FileToLoad,int ShowFlags)
is only function for all the places where AppLoader can be used.
Purely theoretically: it can be possible to grab both the file names from the dialog labels. But I don't know what I can do with paths like "D:\folder\folder\folder\folder\...\folder\folder\folder\name.ext".
ListLoad(HWND ListerWin,char* FileToLoad,int ShowFlags)
is only function for all the places where AppLoader can be used.
Purely theoretically: it can be possible to grab both the file names from the dialog labels. But I don't know what I can do with paths like "D:\folder\folder\folder\folder\...\folder\folder\folder\name.ext".
@Maximum, thanks. I don't understand your answers. I was asking if there are any places where AppLoader is passing two paths to the activated programs. If there are such places, which are they? Places means TC dialogs/windows.Maximus wrote:sgp
ListLoad(HWND ListerWin,char* FileToLoad,int ShowFlags)
is only function for all the places where AppLoader can be used.
Purely theoretically: it can be possible to grab both the file names from the dialog labels. But I don't know what I can do with paths like "D:\folder\folder\folder\folder\...\folder\folder\folder\name.ext".
I don't understand what you mean by, "what should I do with <long path>...", what issue are you alluding to?
I wish to be able to invoke a file comparison program between the two files in the copy overwrite dialog. Is this possible with AppLoader? TIA
TC use only one path in all the cases where it calls the Lister.I don't understand your answers. I was asking if there are any places where AppLoader is passing two paths to the activated programs. If there are such places, which are they? Places means TC dialogs/windows.
I don't understand what you mean by, "what should I do with <long path>...", what issue are you alluding to?
Image: http://maximus.in.ua/files/temp/long_path.png
Not, at the moment. But if the problem with long paths can be resolved then answer is "yes, it is"I wish to be able to invoke a file comparison program between the two files in the copy overwrite dialog. Is this possible with AppLoader? TIA
OK, I think I uderstand now. In theory AppLoader could read the second path from a UI control, but when the path is too long to fit inside the control the path is shortened with ... in the middle, so it can't be resolved.
Could AppLoader simulate a mouse click on the "More Options>>" dialog of the overwrite dialog? From there could AppLoader select the first menu entry, which is 'compare', then intercept the call to the file compator from which it could get both paths... I know, it sounds kludgy, and I have no idea if it's technically possible, but...
BTW, my file overwrite dialog looks different from yours. Mine displays a thumbnail for each of the two files in the overwrite dialog. It makes me wonder if it's some other loaded plugin that adds the thumbnails. If so then maybe AppLoader could use a similar technique to modify/intercept the overwrite dialog and make it display the full path?
Unrelated to this topic, do you know if TC allows setting the file compare program to an external one? It would solve my original issue - invoking a custom compare tool from the overwrite dialog would be just two mouse-clicks away...
Could AppLoader simulate a mouse click on the "More Options>>" dialog of the overwrite dialog? From there could AppLoader select the first menu entry, which is 'compare', then intercept the call to the file compator from which it could get both paths... I know, it sounds kludgy, and I have no idea if it's technically possible, but...
BTW, my file overwrite dialog looks different from yours. Mine displays a thumbnail for each of the two files in the overwrite dialog. It makes me wonder if it's some other loaded plugin that adds the thumbnails. If so then maybe AppLoader could use a similar technique to modify/intercept the overwrite dialog and make it display the full path?
Unrelated to this topic, do you know if TC allows setting the file compare program to an external one? It would solve my original issue - invoking a custom compare tool from the overwrite dialog would be just two mouse-clicks away...
Yes, for example my Wincmd.ini entry:sgp wrote: ...
Unrelated to this topic, do you know if TC allows setting the file compare program to an external one? It would solve my original issue - invoking a custom compare tool from the overwrite dialog would be just two mouse-clicks away...
CompareTool="%COMMANDER_DRIVE%\tools\Beyond Compare 2\BC2.exe"
You can also make a button to invoke that with command:
cm_CompareFilesByContent
we just miss a kind of "TC Compare Redirector" to have comparetools defined by File TypeHorst.Epp wrote:Yes, for example my Wincmd.ini entry:sgp wrote: ...
Unrelated to this topic, do you know if TC allows setting the file compare program to an external one? It would solve my original issue - invoking a custom compare tool from the overwrite dialog would be just two mouse-clicks away...
CompareTool="%COMMANDER_DRIVE%\tools\Beyond Compare 2\BC2.exe"
You can also make a button to invoke that with command:
cm_CompareFilesByContent

Beyound Compare already does thisnsp wrote:we just miss a kind of "TC Compare Redirector" to have comparetools defined by File TypeHorst.Epp wrote:Yes, for example my Wincmd.ini entry:sgp wrote: ...
Unrelated to this topic, do you know if TC allows setting the file compare program to an external one? It would solve my original issue - invoking a custom compare tool from the overwrite dialog would be just two mouse-clicks away...
CompareTool="%COMMANDER_DRIVE%\tools\Beyond Compare 2\BC2.exe"
You can also make a button to invoke that with command:
cm_CompareFilesByContent

It compares according to file types with different filters and features.
I'll see what I can do.Could AppLoader simulate a mouse click on the "More Options>>" dialog of the overwrite dialog? From there could AppLoader select the first menu entry, which is 'compare', then intercept the call to the file compator from which it could get both paths... I know, it sounds kludgy, and I have no idea if it's technically possible, but...
AppLoader can be called only from overwrite dialog, not before its opening.BTW, my file overwrite dialog looks different from yours. Mine displays a thumbnail for each of the two files in the overwrite dialog. It makes me wonder if it's some other loaded plugin that adds the thumbnails. If so then maybe AppLoader could use a similar technique to modify/intercept the overwrite dialog and make it display the full path?
Thanks for taking a look!Maximus wrote:I'll see what I can do.
Assuming that you can accomplish some kind of hook, how would AppLoader know to start the "comparator hook" vs. the "viewer hook" in practice? I press F3 and AppLoader starts the viewer hook now. Will I neeed to press another key for the comparator? Or will I need to press F3 and answer an intermediate choice dialog?
BTW, currently I use F4Menu as my AppLoaded viewer.