can't send files to a program icon!

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

can't send files to a program icon!

Post by giuliastar »

Hi
i can't send files to a program icon

i create a custom icon to calculate the hash and send to virus total
i want to send many files to this program

i tried to select many files and after click on the icon nothing , i tried to select several files and drag on the icon nothing



here the screenshot , i tried to enable "fire click on mouse down" nothing
Image

here it's the icon

Image

i run 13.40 ,windows 7 64bit

thanks
ps is it a bug?

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: can't send files to a program icon!

Post by binocular222 »

You have to write a script on either field "On left click" or "On right click".

The script can refer to the dropped file as <drop>

Example:

Code: Select all

openwith """K:\hash\hasher.exe"" <drop>"
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: can't send files to a program icon!

Post by giuliastar »

binocular222 wrote:You have to write a script on either field "On left click" or "On right click".

The script can refer to the dropped file as <drop>

Example:

Code: Select all

openwith """K:\hash\hasher.exe"" <drop>"
thanks !
works with the script
but why do i need the script?
it's weird

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: can't send files to a program icon!

Post by j_c_hallgren »

giuliastar wrote:but why do i need the script?
it's weird
Not weird -- you need the script to define what the button does, ok?
The name field defines what it's called (it could be something like "My first button", for ex) and the Icon field defines what it looks like but you still have to give it what action to take when you click it...make sense now?
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: can't send files to a program icon!

Post by giuliastar »

j_c_hallgren wrote:
giuliastar wrote:but why do i need the script?
it's weird
Not weird -- you need the script to define what the button does, ok?
The name field defines what it's called (it could be something like "My first button", for ex) and the Icon field defines what it looks like but you still have to give it what action to take when you click it...make sense now?
yes but the icon is related to a program
and i know nothing about scripts :eh: :cry:

admin
Site Admin
Posts: 66360
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: can't send files to a program icon!

Post by admin »

Hm, dropping stuff onto that button should work, and it does here. :?

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: can't send files to a program icon!

Post by giuliastar »

admin wrote:Hm, dropping stuff onto that button should work, and it does here. :?
may i ask you the meaning about
Hm, dropping stuff onto that button should work, and it does here
?

with the script work 100%
without the script no

admin
Site Admin
Posts: 66360
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: can't send files to a program icon!

Post by admin »

See here: http://www.xyplorer.com/release_10.20.htm

This should work and does work.

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: can't send files to a program icon!

Post by giuliastar »

admin wrote:See here: http://www.xyplorer.com/release_10.20.htm

This should work and does work.
i did exactly like the tutorial
well but when i select 4 files and drag to the new icon , it opens 4 istances of the program
in my case 4 istances of MultiHasher.exe

is it normal?

thansk

admin
Site Admin
Posts: 66360
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: can't send files to a program icon!

Post by admin »

Yes. It depends on the called program how it handles this.

In your first post your wrote: "i tried to select several files and drag on the icon nothing".
Now you write: "well but when i select 4 files and drag to the new icon , it opens 4 istances of the program"

:?

Post Reply