Search found 118 matches

by JBensimon
15 Mar 2024, 11:34
Forum: Scripts and Functions (v1)
Topic: Get current explorer window path
Replies: 28
Views: 12318

Re: Get current explorer window path

Yes, it does work in Win10 for me.

JB
by JBensimon
15 Mar 2024, 07:42
Forum: Scripts and Functions (v1)
Topic: Get current explorer window path
Replies: 28
Views: 12318

Re: Get current explorer window path

Anybody know whether a similar approach is available to get the path of the directory currently displayed by standard File Open or Save dialogs? Despite the similar appearance, they're not shell window objects, but are they some other sort of object with readable properties?

Thanks.

JB
by JBensimon
12 Mar 2024, 16:37
Forum: Ask for Help (v1)
Topic: Capturing the current Explorer window's full path Topic is solved
Replies: 3
Views: 129

Re: Capturing the current Explorer window's full path Topic is solved

That looks great. Crossing my fingers that it still works in Windows 11 (I'll post once I know).

Thanks a LOT for the quick reply!

JB
by JBensimon
12 Mar 2024, 16:22
Forum: Ask for Help (v1)
Topic: Capturing the current Explorer window's full path Topic is solved
Replies: 3
Views: 129

Capturing the current Explorer window's full path Topic is solved

In Windows 10, capturing the full path to the folder displayed in the active Explorer window was as easy as getting the text content of its address bar using ControlGetText, var, ToolbarWindow323, A which returned something like say Address: C:\Program Files\Common Files , independently of Explorer'...
by JBensimon
03 Mar 2024, 16:40
Forum: Ask for Help (v1)
Topic: WinWaitActive false positive Topic is solved
Replies: 2
Views: 59

Re: WinWaitActive false positive Topic is solved

Are you kidding me?! I must have read that page a hundred times over the decades and never noticed that particular caveat. I guess I've rarely needed the title text to identify windows, relying instead on window IDs, PIDs, and classes, but this time around, it became unavoidable.

Thanks, buddy!

JB
by JBensimon
03 Mar 2024, 15:16
Forum: Ask for Help (v1)
Topic: WinWaitActive false positive Topic is solved
Replies: 2
Views: 59

WinWaitActive false positive Topic is solved

The following command triggers on any dialog of the specified class (typical shell dialogs class #32770) belonging to the process with PID %ePID% (confimed as the correct PID) but regardless of its title text, so not only on the " Save HTML Document " dialog but also the " Font " and " Color " dialo...
by JBensimon
26 Oct 2023, 18:05
Forum: Scripts and Functions (v1)
Topic: Windows 11 Classic Context Menu via Right-Double-Click
Replies: 2
Views: 509

Re: Windows 11 Classic Context Menu via Right-Double-Click

Gets rid of unnecessary icons in the resulting executable (the program only uses two icons). Remove those lines if you don't care, or correct the path to wherever you keep ResHacker.exe ("Resource Hacker", from angusj.com)

JB
by JBensimon
24 Oct 2023, 15:23
Forum: Scripts and Functions (v1)
Topic: Windows 11 Classic Context Menu via Right-Double-Click
Replies: 2
Views: 509

Windows 11 Classic Context Menu via Right-Double-Click

I thought I'd share this short one: while running, it displays any Explorer item's "classic" extended context menu when the item is double-clicked using the secondary mouse button (right-single-click still has the expected behavior, and right-drag & drop shouldn't be affected). This provides a singl...
by JBensimon
09 Oct 2023, 14:50
Forum: Ask for Help (v1)
Topic: Launching a shortcut "as admin" Topic is solved
Replies: 2
Views: 455

Re: Launching a shortcut "as admin" Topic is solved

Wow, just realized that your first suggestion wasn't working for me because, by a quirk of how I was assembling the Run parameter, there were two spaces between *RunAs and path\shortcut.lnk , which yields a "file not found" error and was the reason I posted the question in the first place. Thanks fo...
by JBensimon
09 Oct 2023, 12:43
Forum: Ask for Help (v1)
Topic: Launching a shortcut "as admin" Topic is solved
Replies: 2
Views: 455

Launching a shortcut "as admin" Topic is solved

Is there a more direct way to launch a shortcut elevated than

Code: Select all

Run, *RunAs cmd.exe /c "path\shortcut.lnk",, Hide
i.e. without the help of CMD and without extracting & launching the target of the shortcut? I can't think of any.

JB
by JBensimon
01 Apr 2023, 20:55
Forum: Ask for Help (v1)
Topic: Send/SendRaw issue
Replies: 4
Views: 446

Re: Send/SendRaw issue

Great minds ... That's exactly what I wound up doing, except that I used the more traditional Loop, Parse, ... command (still on v1.1).

Thanks for the reply.

JB
by JBensimon
31 Mar 2023, 11:47
Forum: Ask for Help (v1)
Topic: Send/SendRaw issue
Replies: 4
Views: 446

Re: Send/SendRaw issue

I'm pretty sure Send, {Text}... is one of the things I already tried (based on the documentation's "this improves reliability because the characters are much less dependent on correct modifier state" ) but, if memory serves, the result was a mess that looked nothing like what I was trying to send (I...
by JBensimon
31 Mar 2023, 10:27
Forum: Ask for Help (v1)
Topic: Trigger a picture control g-label via keyboard?
Replies: 9
Views: 672

Re: Trigger a picture control g-label via keyboard?

Thank you both for all the suggestions. I'll do some testing when I get a chance ... ... but now that I come back to this question with fresh eyes, a simpler thought occurs to me: create a size 0 x 0 button at the expected tabstop position of the picture control (i.e. add the button immediately afte...
by JBensimon
31 Mar 2023, 10:11
Forum: Ask for Help (v1)
Topic: Send/SendRaw issue
Replies: 4
Views: 446

Send/SendRaw issue

I use a hotkey to "paste" the current clipboard contents into the window with focus by sending keystrokes, very useful for app windows that don't support a normal paste function (such as certain remote session windows and consoles), which comes in handy to enter complex passwords, long URLs, etc. wh...
by JBensimon
22 Mar 2023, 22:14
Forum: Ask for Help (v1)
Topic: FileExist() "blind spots" Topic is solved
Replies: 2
Views: 243

Re: FileExist() "blind spots" Topic is solved

Excellent, Mikey! That'll work very nicely. I'd considered that but using the parent folder with a wildcard (like Loop, Files, C:\* in this case) but that seemed highly inefficient to check for a single file's existence-- totally forgot that a single file can be specified (event though I frequently ...
by JBensimon
22 Mar 2023, 21:16
Forum: Ask for Help (v1)
Topic: FileExist() "blind spots" Topic is solved
Replies: 2
Views: 243

FileExist() "blind spots" Topic is solved

This may have been reported previously, but some files that manifestly exist (for example C:\pagefile.sys and C:\swapfile.sys) are not detected as existing by FileExist() (which returns an empty string) or even by the old IfExist command, yet are fully recognized by Attrib.exe (which correctly displ...
by JBensimon
13 Mar 2023, 10:12
Forum: Ask for Help (v1)
Topic: Trigger a picture control g-label via keyboard?
Replies: 9
Views: 672

Re: Trigger a picture control g-label via keyboard?

Thank you both for the replies. Yes, a custom hotkey will do the trick, but what I was wondering was whether there was "Windows native" way (of which I was unaware) to trigger a picture control action, and I guess the answer is no. Microsoft is usually pretty good at making sure that things can be d...
by JBensimon
11 Mar 2023, 15:10
Forum: Ask for Help (v1)
Topic: Trigger a picture control g-label via keyboard?
Replies: 9
Views: 672

Trigger a picture control g-label via keyboard?

If I tab over to a Gui picture control, for example one defined as follows, Gui, Add, Picture, +Border +TabStop gPickIcon vSelectedIcon Icon23, %A_WinDir%\System32\SHELL32.dll , is it possible to trigger its g-label (here PickIcon ) using the keyboard rather than the mouse? Neither Enter nor Space d...
by JBensimon
20 Feb 2023, 14:29
Forum: Suggestions on Documentation Improvements
Topic: RegExReplace backreferences cannot be manipulated
Replies: 21
Views: 3665

Re: RegExReplace backreferences cannot be manipulated

Backreferences cannot be used directly in inner functions or as numbers in expressions. Hmm, that may be a little too brief, and the meaning of "inner functions" won't be obvious. Maybe something like this, added to the description of the Replacement parameter: When the Replacement parameter is an ...

Go to advanced search