Drag and drop is not working

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
sk2107
Posts: 288
Joined: Sun Aug 07, 2022 8:48 pm

Drag and drop is not working

Post by sk2107 »

Hi,
I have an application the I use to work with the files in Everything list results by marking the required files and drag and drop the list to my application and it used to work fine. Now I installed new windows (10) and installed Everything but the drag and drop is not working any more.

Please assist.

Best Regards
void
Developer
Posts: 15367
Joined: Fri Oct 16, 2009 11:31 pm

Re: Drag and drop is not working

Post by void »

This issue usually occurs when either one of the programs is running as administrator.

Please make sure Everything is installed correctly and running as a standard user:
  • In Everything, from the Tools menu, click Options.
  • Click the General tab on the left.
  • Check Store settings and data in %APPDATA%\Everything.
  • Uncheck Run as administrator.
  • Check Everything Service. (Please make sure this is tick-checked and not square-checked)
  • Click OK.
  • Exit Everything (right click the Everything tray icon and click Exit).
  • Restart Everything.


Please make sure your other app is also running as a standard user.
sk2107
Posts: 288
Joined: Sun Aug 07, 2022 8:48 pm

Re: Drag and drop is not working

Post by sk2107 »

I already have the settings as suggested and I restarted Everything and made sure that none of them runs as administrator, but still not working.

I tried other common apps like Total commander, Drag and drop is not working either (From Everything to the App).


Best Regards
void
Developer
Posts: 15367
Joined: Fri Oct 16, 2009 11:31 pm

Re: Drag and drop is not working

Post by void »

Does drag/drop work within Everything?
-Can you drag a file into the search box?
sk2107
Posts: 288
Joined: Sun Aug 07, 2022 8:48 pm

Re: Drag and drop is not working

Post by sk2107 »

Yes I can you drag a file into the search box and it is fine.

Best Regards
void
Developer
Posts: 15367
Joined: Fri Oct 16, 2009 11:31 pm

Re: Drag and drop is not working

Post by void »

Thank you for the information.

It sounds like Everything is creating the drag-source without issue.



There could still be an issue with Everything..

Can you drag a text file from Everything and drop it on Notepad.exe?



Please try enabling allow_window_message_filter_dragdrop:
  • Exit Everything (File -> Exit).
  • From the Start menu, search for:
    notepad
  • Right click Notepad and click Run as administrator.
  • In Notepad, from the File menu, click Open....
  • Select your Everything.ini in the same location as your Everything.exe
    (Everything-1.5a.ini for the 1.5 alpha)
  • Change the following line:
    allow_window_message_filter_dragdrop=0
    to:
    allow_window_message_filter_dragdrop=1
  • Restart Everything.
-Enabling will allow standard users to drop files on Everything running as admin.
sk2107
Posts: 288
Joined: Sun Aug 07, 2022 8:48 pm

Re: Drag and drop is not working

Post by sk2107 »

Can you drag a text file from Everything and drop it on Notepad.exe?
Yes it works and when I run Notepad.exe as administrator it does not work.
enabling allow_window_message_filter_dragdrop:
I did all the steps to change "allow_window_message_filter_dragdrop" to 1, but still the same, no change.

Best regards
sk2107
Posts: 288
Joined: Sun Aug 07, 2022 8:48 pm

Re: Drag and drop is not working

Post by sk2107 »

Now I changed the setting of Everything run_as_admin=1 and it worked fine to drag/drop to my App or other apps. but is it the right thing to do?



Best Regards
void
Developer
Posts: 15367
Joined: Fri Oct 16, 2009 11:31 pm

Re: Drag and drop is not working

Post by void »

when I run Notepad.exe as administrator it does not work.
This is expected.

It sounds like you are dropping files on an application that is running as administrator.



You cannot drop files from a program running as a standard user to a program running as administrator.
(unless they have a similar setting to allow_window_message_filter_dragdrop)
This is blocked by User Interface Privilege Isolation (UIPI)
UIPI can be disabled, but it's not recommended.



Can you drop files from Explorer onto this application?
void
Developer
Posts: 15367
Joined: Fri Oct 16, 2009 11:31 pm

Re: Drag and drop is not working

Post by void »

Running Everything as admin will fix the issue, but it's not recommended.

Can you run the other app as a standard user?
sk2107
Posts: 288
Joined: Sun Aug 07, 2022 8:48 pm

Re: Drag and drop is not working

Post by sk2107 »

You are right, both should have the same privilege, I did not notice that the application I am using is running as an administrator because I am running it from another application which is running as an administrator, I never thought that my app is taking the privilege from the calling app (I think).

Thank for your support.

Best regards
horst.epp
Posts: 1345
Joined: Fri Apr 04, 2014 3:24 pm

Re: Drag and drop is not working

Post by horst.epp »

sk2107 wrote: Tue Oct 03, 2023 9:59 am from another application which is running as an administrator, I never thought that my app is taking the privilege from the calling app (I think).
It does it.
That's the reason why you should not run any app with enhanced privileges.
sk2107
Posts: 288
Joined: Sun Aug 07, 2022 8:48 pm

Re: Drag and drop is not working

Post by sk2107 »

Thank you
Post Reply