Author Topic: Windows Message API is working?  (Read 38022 times)

antekgla

  • Newbie
  • *
  • Posts: 4
    • View Profile
Windows Message API is working?
« on: June 22, 2017, 20:37:10 »
Hi,
I recently discover MultiCommander and i am impress!
So complex and full of options!
Congratulations for this great software!

I am interested in the Windows Message API, I read the docs and is a little hard for me because I am a begginer Delphi/Lazarus programmer.
But my first and main question is: The Windows Message API is working? because I download your Sample Project with the C++ Helper.
I have MultiCommander open of course, I execute MCCopyDataSendGetSample.exe but nothing happens, any button I press the path still remains C:\windows\system32

Thanks in advance!

Edit: I forgot to say my OS is Windows7 x64 SP1
« Last Edit: June 23, 2017, 17:43:13 by antekgla »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: Windows Message API is working?
« Reply #1 on: June 24, 2017, 13:21:48 »
Hmm Strange..  It should work.. Did some googling and it might be that some security thing in windows have changed that made it not work anymore..
But I think it will be possible to enable it again.. looks like apps need to opt-in for it. So might need to add a option for it.
But I need to check this more.  I post more when I know more.

(I dont have time to test right now.. But is it the same if both of the apps are running as admin. or if sending app is running as admin ? )

antekgla

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Windows Message API is working?
« Reply #2 on: June 24, 2017, 19:59:17 »
Tested... bot programs run As Administrator same behavior...  (don't work).  :(

I can confirm what that is not the problem because I download a demo (made in Delphi) very simple,  what use WM_COPYDATA messages to communicate each other and dont need to be Admin to work.

My goal is know in myApp what paths have open/displayed MultiCommander in all TABS. I made it work in Windows Explorer, FreeCommander XE (only the active tab) and Total Commander but always thru inspect windows classes and his captions. Sadly your program use your own MZCrumbBarCtrl component (very impressive!) to display the paths and that component  dont publish his caption, so I am stuck.

Maybe you know some way to accomplish that in another way.

Thanks in advance.

PD: Little screenshot of my program showing paths of differents File Managers.

« Last Edit: June 24, 2017, 20:03:47 by antekgla »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: Windows Message API is working?
« Reply #3 on: June 25, 2017, 15:40:29 »
I got some time to test the sample now and it works.

Start MC
Start MCCopyDataSendGetSample.exe
Click "Get Current item" in the Sample app and the Full path of the item in focus is shown in the sample app

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: Windows Message API is working?
« Reply #4 on: June 25, 2017, 16:20:06 »
If you did not build the sample app you self.. It might be that the prebuilt .exe required an old redist files.
Download the sample again and try the exe there. I changed the sample so it does not require any redists.. (That why it is a little large..)

antekgla

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Windows Message API is working?
« Reply #5 on: June 26, 2017, 17:36:06 »
Thanks!
I try the .exe and now works as expected.

Good work and thanks to take the time to look at it.