This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[WLX] AppLoader
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) Printable version
View previous topic :: View next topic  
Author Message
sky66
Member
Member


Joined: 22 Feb 2014
Posts: 105

PostPosted: Mon Mar 10, 2014 9:49 pm    Post subject: Reply with quote

AppLoader is my first priority in WINCMD.INI [ListerPlugins].

Suggest to change IfIsExtOnly=0 to IfIsExtOnly=1 as default.

Because current DefaultEditor=notepad, it is not proper application for many file types. It will spend lot of CPU/RAM resource to use Notepad to open MULTIMEDIA or large files.
Back to top
View user's profile Send private message
Maximus
Member
Member


Joined: 12 Apr 2006
Posts: 147
Location: Ukraine

PostPosted: Tue Mar 11, 2014 10:34 am    Post subject: Reply with quote

sky66
OK :)
_________________
tcPhonebook|AppLoader|TC UAtion|Ultimate Calendar
Back to top
View user's profile Send private message Send e-mail Visit poster's website
solid
Power Member
Power Member


Joined: 09 Aug 2004
Posts: 536

PostPosted: Thu Nov 06, 2014 7:07 am    Post subject: Reply with quote

2Maximus
Thanks for your plugin. I discovered it just now and it brought me F4 menu in the lister. I don't know how do i missed this topic and plugin through all those years.
Great work.
Back to top
View user's profile Send private message Send e-mail
Maximus
Member
Member


Joined: 12 Apr 2006
Posts: 147
Location: Ukraine

PostPosted: Thu Nov 06, 2014 1:43 pm    Post subject: Reply with quote

Quote:
Thanks for your plugin. I discovered it just now and it brought me F4 menu in the lister. I don't know how do i missed this topic and plugin through all those years.

It's very nice idea. I haven't thought about that applying of AppLoader.
_________________
tcPhonebook|AppLoader|TC UAtion|Ultimate Calendar
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sgp
Senior Member
Senior Member


Joined: 31 Jan 2005
Posts: 355

PostPosted: Fri Nov 07, 2014 9:51 am    Post subject: Reply with quote

@solid and maximus, thanks! that's a great idea.
_________________
right-click context menu - TC_SyncWorks
Back to top
View user's profile Send private message
sgp
Senior Member
Senior Member


Joined: 31 Jan 2005
Posts: 355

PostPosted: Sun Nov 09, 2014 1:40 am    Post subject: Reply with quote

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
_________________
right-click context menu - TC_SyncWorks
Back to top
View user's profile Send private message
Maximus
Member
Member


Joined: 12 Apr 2006
Posts: 147
Location: Ukraine

PostPosted: Tue Nov 11, 2014 5:31 am    Post subject: Reply with quote

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".
_________________
tcPhonebook|AppLoader|TC UAtion|Ultimate Calendar
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sgp
Senior Member
Senior Member


Joined: 31 Jan 2005
Posts: 355

PostPosted: Mon Nov 17, 2014 9:57 am    Post subject: Reply with quote

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".
@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.

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
_________________
right-click context menu - TC_SyncWorks
Back to top
View user's profile Send private message
Maximus
Member
Member


Joined: 12 Apr 2006
Posts: 147
Location: Ukraine

PostPosted: Mon Nov 17, 2014 12:18 pm    Post subject: Reply with quote

Quote:
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.

TC use only one path in all the cases where it calls the Lister.

Quote:
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

Quote:
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

Not, at the moment. But if the problem with long paths can be resolved then answer is "yes, it is"
_________________
tcPhonebook|AppLoader|TC UAtion|Ultimate Calendar
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sgp
Senior Member
Senior Member


Joined: 31 Jan 2005
Posts: 355

PostPosted: Wed Nov 19, 2014 12:39 am    Post subject: Reply with quote

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...
_________________
right-click context menu - TC_SyncWorks
Back to top
View user's profile Send private message
Horst.Epp
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 2827
Location: Germany

PostPosted: Wed Nov 19, 2014 2:29 am    Post subject: Reply with quote

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...

Yes, for example my Wincmd.ini entry:
CompareTool="%COMMANDER_DRIVE%\tools\Beyond Compare 2\BC2.exe"

You can also make a button to invoke that with command:
cm_CompareFilesByContent
Back to top
View user's profile Send private message
nsp
Power Member
Power Member


Joined: 04 Dec 2005
Posts: 1163
Location: Lyon (FRANCE)

PostPosted: Wed Nov 19, 2014 3:28 am    Post subject: Reply with quote

Horst.Epp wrote:
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...

Yes, for example my Wincmd.ini entry:
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 Type Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Horst.Epp
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 2827
Location: Germany

PostPosted: Wed Nov 19, 2014 4:34 am    Post subject: Reply with quote

nsp wrote:
Horst.Epp wrote:
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...

Yes, for example my Wincmd.ini entry:
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 Type Wink

Beyound Compare already does this Very Happy
It compares according to file types with different filters and features.
Back to top
View user's profile Send private message
Maximus
Member
Member


Joined: 12 Apr 2006
Posts: 147
Location: Ukraine

PostPosted: Thu Nov 20, 2014 1:12 am    Post subject: Reply with quote

Quote:
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...

I'll see what I can do.

Quote:
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?

AppLoader can be called only from overwrite dialog, not before its opening.
_________________
tcPhonebook|AppLoader|TC UAtion|Ultimate Calendar
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sgp
Senior Member
Senior Member


Joined: 31 Jan 2005
Posts: 355

PostPosted: Thu Nov 20, 2014 1:36 am    Post subject: Reply with quote

Maximus wrote:
I'll see what I can do.
Thanks for taking a look!
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.
_________________
right-click context menu - TC_SyncWorks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4, 5  Next
Page 4 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Imprint/Impressum: This site is maintained by Ghisler Software GmbH
Privacy Policy | Datenschutzerklńrung

Using phpBB © 2001-2005 phpBB Group