topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday March 29, 2024, 3:04 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: PastePath 1.5.0.1  (Read 14803 times)

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
PastePath 1.5.0.1
« on: October 22, 2012, 11:12 AM »
PastePath 1.0.0.0 PastePath initial release.  Hotkey that sits in Tray. Control Right Click in Edit of Standard Open or SaveAs Dialog pastes the path from the most recently active Explorer Window that's currently open. See About Box for info regarding Explorer Window selection if more than one is open.

It's just a simple hotkey to avoid drilling down in Open and SaveAs Dialogs.  The dialog must be a "standard dialog" meaning Windows gives it the window class #32770. Also the caption must start with either Save or Open.

The trailing backslash is included in the path. This should force most dialogs to display files in the target folder if you hit Enter.

See the included Readme.txt and About Box for more details.

You may download from this page:

http://milesaheadsoftware.tk/

« Last Edit: December 13, 2013, 03:30 PM by MilesAhead »

eleman

  • Spam Killer
  • Supporting Member
  • Joined in 2009
  • **
  • default avatar
  • Posts: 413
    • View Profile
    • Donate to Member
Re: PastePath 1.0.0.0
« Reply #1 on: October 22, 2012, 11:38 AM »
Clever. Thank you :)

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: PastePath 1.0.0.0
« Reply #2 on: October 22, 2012, 12:29 PM »
Clever. Thank you :)

You're welcome. Thanks for the response. :)

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: PastePath 1.0.0.0
« Reply #3 on: October 22, 2012, 03:53 PM »
hi Miles,
this sounds intresting :up:

I tried it with Win7 64bit and got this response:

Error:  0x8000FFFF - Catastrophic failure

Specifically: hwnd

   Line#
--->   149: if (Item.hwnd = _hwnd) 

Continue running the script?
Tom

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: PastePath 1.0.0.0
« Reply #4 on: October 22, 2012, 04:36 PM »
Ok, I'll take a look at it.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: PastePath 1.0.0.0
« Reply #5 on: October 22, 2012, 05:02 PM »
Please try this one

(whoops!! I never modified the rest of the function. Hang on a bit)

Ok, try it now.

(My theory is your system does not have Shell.Application object that's used to get the Explorer path associated with the window. If I'm right, the app still won't work, but it shouldn't crash. Please let me know what results you get with this version.)
« Last Edit: October 22, 2012, 06:08 PM by MilesAhead »

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: PastePath 1.0.1.0
« Reply #6 on: October 22, 2012, 05:39 PM »
PastePath 1.0.1.0 Fixed a bug where the program could crash if the system it's running on did not have Shell.Application object. This is an automation object(COM thing) that's used to get the path of the folder from an open Explorer window.
« Last Edit: October 23, 2012, 12:18 AM by MilesAhead »

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: PastePath 1.0.1.0
« Reply #7 on: October 23, 2012, 05:14 AM »
Sorry Miles :(
similar problem:

---------------------------
Error:  0x8000FFFF - Catastrophic failure


Specifically: hwnd

   Line#
--->   152: if (Item.hwnd = _hwnd)  

Continue running the script?
---------------------------

I've actually got a copy of Listary (not-yet-installed) which does this - so dont go to any trouble for me - but I will be happy to test it (or give you more info) if you want to sort it out :)
Tom

TaoPhoenix

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 4,642
    • View Profile
    • Donate to Member
Re: PastePath 1.0.1.0
« Reply #8 on: October 23, 2012, 09:08 AM »
You can decide if you want to add support for different browser save-as dialogs. For example to save your utilities off your page from Firefox, right-click and save-link-as doesn't work with your utility because it starts as "*enter* the name of file to save to".


MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: PastePath 1.0.1.0
« Reply #9 on: October 23, 2012, 09:52 AM »
Sorry Miles :(
similar problem:

---------------------------
Error:  0x8000FFFF - Catastrophic failure


Specifically: hwnd

   Line#
--->   152: if (Item.hwnd = _hwnd)  

Continue running the script?
---------------------------

I've actually got a copy of Listary (not-yet-installed) which does this - so dont go to any trouble for me - but I will be happy to test it (or give you more info) if you want to sort it out :)

I appreciate that. Might as well try 64 bit compiled. The 32 bit works fine on my Vista64 system. I don't have 64 bit W7 to try it.


tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: PastePath 1.0.1.0
« Reply #10 on: October 23, 2012, 12:02 PM »
Might as well try 64 bit compiled.
---------------------------
Error:  0x8000FFFF - Catastrophic failure


Specifically: hwnd

   Line#
--->   087: if (Item.hwnd = _hwnd) 

Continue running the script?
---------------------------
Tom

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: PastePath 1.0.1.0
« Reply #11 on: October 23, 2012, 12:12 PM »
Might as well try 64 bit compiled.
---------------------------
Error:  0x8000FFFF - Catastrophic failure


Specifically: hwnd

   Line#
--->   087: if (Item.hwnd = _hwnd)  

Continue running the script?
---------------------------

I read on ahk forum there's some flaw in how AHK_L does COM where it cannot differentiate all the property access methods. It's weird because both the 32 bit and 64 bit work fine on my Vista64.  I'll have to see if I can find another folder detection. Maybe using WMI.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: PastePath 1.0.1.0
« Reply #12 on: October 23, 2012, 01:00 PM »
Specifically: hwnd

One more try? This one I did without COM object. But for it to work Explorer View Settings must have "Display Full Path in the Title Bar" enabled.

Capture.JPG
« Last Edit: October 23, 2012, 01:06 PM by MilesAhead »

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: PastePath 1.0.2.0
« Reply #13 on: October 23, 2012, 01:35 PM »
^ Yaaaah, it works :Thmbsup:

I dont know did it complicate things, but (I think) I was doing something wrong all along :-[
I was right-clicking in the Address field of save/open dialogue - it works now though, even if I do that.
Tom

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: PastePath 1.0.2.0
« Reply #14 on: October 23, 2012, 01:57 PM »
No. I don't think it was you at all. I was pasting into Address Field too. It just sends Control-v to paste.

I think I will just put the last one on my page since it works. Many of my utilities require that same title bar setting anyway. Also it's faster than looping through the shell application window list.

Thanks very much for trying the various versions.   :Thmbsup:


MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: PastePath 1.0.3.0
« Reply #15 on: October 23, 2012, 02:13 PM »
PastePath 1.0.3.0 Now one size fits all. I got rid of the COM approach. Most of my Explorer utilities require the same folder setting as shown in the earlier screen shot.... display full path in title bar.  That method has always been very reliable. This version should work across XP,Vista and Windows Seven 32 and 64 bit.

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: PastePath 1.0.3.0
« Reply #16 on: October 23, 2012, 02:18 PM »
On windows 7, the setting says "(Classic theme only)" at the end there
-
your screenshot above says:
"(Classic folders only)".

Just wanted to note that this works even though I'm *not* using classic theme (I'm using Aero).
Tom

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: PastePath 1.0.3.0
« Reply #17 on: October 23, 2012, 02:36 PM »
Yeah, I don't know why they put that in the parens. I use a transparent Aero based theme on Vista and a custom I got from Bongo on W7 forums and it works fine.  The Bongo theme is Aero but he made the Explorer background antique white. Less glare when using fractal flame wallpaper with all the black background.

Don't ask me why you can't just change the Explorer background color in the registry. Plus I tried all those background color changers. None of them work in Computer. Bongo's theme was the only one that works since it's hard wired.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: PastePath 1.1.0.0
« Reply #18 on: October 24, 2012, 10:41 PM »
PastePath 1.1.0.0 Added Browse for Folder standard dialog to supported dialogs. It must be the type with an Edit Line to paste into of course. :)

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: PastePath 1.2.0.0
« Reply #19 on: November 06, 2012, 08:39 AM »
PastePath 1.2.0.0 Changed the hotkey to Control Winkey Right Click. Removed all window exclusions. Now works with any target window that will except text paste from clipboard.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: PastePath 1.3.0.0
« Reply #20 on: November 13, 2012, 01:45 PM »
PastePath 1.3.0.0 Now saves and restores Clipboard text around the paste.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: PastePath 1.5.0.0
« Reply #21 on: December 03, 2012, 12:55 PM »
PastePath 1.5.0.0  Added ability to paste into command prompts.  Paths containing space(s) are wrapped in double quotes.  See Readme.txt for details.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: PastePath 1.5.0.1
« Reply #22 on: December 13, 2013, 03:29 PM »
PastePath 1.5.0.1  Recompiled with "#usehook" directive for better hotkey response on Windows 8.  In W8 I also recommend you set it to Run As Administrator.  Especially when pasting into Administrator command prompts.  Make sure also that Quick Edit Mode is enabled in the command prompt properties.