[AHK] redirecting Windows Explorer to XY

Discuss and share scripts and script files...
gb007
Posts: 12
Joined: 14 Nov 2018 00:35

Re: [AHK] redirecting Windows Explorer to XY

Post by gb007 »

the correct line should be

Code: Select all

	StringReplace, path, path, file:
or

Code: Select all

	StringReplace, path, path, file://, //

autocart
Posts: 840
Joined: 26 Sep 2013 15:22

Re: [AHK] redirecting Windows Explorer to XY

Post by autocart »

StringReplace, path, path, file: doesn't do anything? Where in the code did you add it?
And why do you think that StringReplace, path, path, file://, should work?

gb007
Posts: 12
Joined: 14 Nov 2018 00:35

Re: [AHK] redirecting Windows Explorer to XY

Post by gb007 »

Code: Select all

StringReplace, path, path, file:///
doesn't do anything, this line is in your script
you can try to display the path variable before and after this line
you'll see by yourself
WE have file:// in the path so file:/// doesn't trigger the replace

Code: Select all

StringReplace, path, path, file:
or

Code: Select all

StringReplace, path, path, file://, //
are doing the trick
replace is triggered and file: is removed from the path

autocart
Posts: 840
Joined: 26 Sep 2013 15:22

Re: [AHK] redirecting Windows Explorer to XY

Post by autocart »

So, finally I am back for now.
Couldn't check it before in the source because I was away, sorry that it took so long.

You are right, StringReplace, path, path, file:/// is in the code, but it is a function which I copied from someone else. Therefore I did not remember / know it when I answered at first.

I added StringReplace, path, path, file://, // for the next release.

hankr123
Posts: 1
Joined: 12 Sep 2020 21:01

Re: [AHK] redirecting Windows Explorer to XY

Post by hankr123 »

No doubt, mine was just reproducing local XY conduct yet it didn't generally make a difference to me as long as it implied that WE weren't opened. Then again, my content doesn't expect XY to be open so it's a tad of a compromise with either content. I do LOVE that yours chooses the document since that is perhaps the greatest inconvenience about XY (despite the fact that I'm generally diverting to an organizer, not a record) at the same time, for me in any event, it doesn't look over the record into seeing. Is that normal conduct and, assuming this is the case, would it be able to be changed? Provided that I despite everything need to look to the document then it diminishes the advantage of having it preselected. Good health.
Sorry, using a signature is not allowed for new users.

autocart
Posts: 840
Joined: 26 Sep 2013 15:22

Re: [AHK] redirecting Windows Explorer to XY

Post by autocart »

Hello hankr123 and welcome to the forum!

Thanks for replying. It keeps me motivated to keep working on my script.

Unfortunately, I don't understand most of your post.
Could you, please, give it another try to explain. I would love to help and improve my script, but I don't really understand, so far, what you really need/want.

Regards, S.

Post Reply