Search found 24 matches

by JBensimon
11 Aug 2020, 10:31
Forum: Wish List
Topic: Enabling hotkeys while a menu is being displayed
Replies: 1
Views: 1308

Enabling hotkeys while a menu is being displayed

Following up on my short thread in the Scripts & Functions area (https://www.autohotkey.com/boards/viewtopic.php?f=6&t=79423&p=346852#p346852),is there currently or can there be a feature that allows a script's hotkeys to remain available while the script is displaying a menu? The thread in question...
by JBensimon
11 Aug 2020, 10:23
Forum: Scripts and Functions
Topic: Recognizing right-click on a menu item
Replies: 1
Views: 1011

Re: Recognizing right-click on a menu item

Correction: It seems the "right-click on a menu" recognition (the conditional RButton hotkey) must be run by a separate AHK process than the one displaying the menu (which is how I was testing this originally), because a script's hotkeys (among other things) are suspended/unavailable while the scrip...
by JBensimon
03 Aug 2020, 10:32
Forum: Scripts and Functions
Topic: Recognizing right-click on a menu item
Replies: 1
Views: 1011

Recognizing right-click on a menu item

Since there is (afaik) no built-in mechanism for recognizing a right -click on an item in an AutoHotkey menu (created and populated via the various Menu commands) in order to perform an alternate function, or display information about the menu item, or show some sort of context menu for the item, et...
by JBensimon
02 Aug 2020, 14:14
Forum: Bug Reports
Topic: A_WinDir bug ... Topic is solved
Replies: 2
Views: 1821

Re: A_WinDir bug ... Topic is solved

Yes, much simpler. I'm not yet fully converted to #NoEnv (lots of old code to worry about), so I sometimes forget about EnvGet.

I see this issue is fixed in v1.1.33.x, as is the FileGetShortcut/FileCreateShortcut icon resource ID issue. Thanks.

JB
by JBensimon
08 Apr 2020, 10:12
Forum: Bug Reports
Topic: A_WinDir bug ... Topic is solved
Replies: 2
Views: 1821

A_WinDir bug ... Topic is solved

... or so I'd consider it! However AutoHotkey retrieves the Windows directory path to set A_WinDir (based on the result, I'm guessing it's via the GetWindowsDirectory API function) gives what is probably not the intended answer in Terminal Services (aka Remote Desktop Services ) sessions running in ...
by JBensimon
12 Mar 2020, 08:56
Forum: Tips and Tricks
Topic: Menu +Break/+BarBreak observation
Replies: 0
Views: 2137

Menu +Break/+BarBreak observation

This is likely not a bug given that AHK menus are system-drawn, but I thought I'd mention it in case it's fixable: when +Break or +BarBreak is used to break up a menu into multiple columns, item names and their corresponding icons are "scrunched" together much closer than they would be otherwise. Co...
by JBensimon
10 Mar 2020, 15:11
Forum: Suggestions on documentation improvements
Topic: "Comma (multi-statement)" documentation
Replies: 0
Views: 1632

"Comma (multi-statement)" documentation

The following two aspects of the " Comma " may be implicit in it being listed in the documentation within the list of expression operators , but they're not obvious and maybe should be explicitly stated: 1/ the fact that the value (result) of a comma expression is the result of its leftmost expressi...
by JBensimon
07 Mar 2020, 23:07
Forum: Bug Reports
Topic: FileGetShortcut/FileCreateShortcut issue
Replies: 0
Views: 1695

FileGetShortcut/FileCreateShortcut issue

Since Windows reports the first icon group in a file (exe, dll, …) as having index 0 but AutoHotkey considers it index 1, FileGetShortcut consistently adds 1 to whatever icon index Windows reports, which allows the icon info to be used as is in later commands, for example Menu, …, Icon, … However, m...
by JBensimon
16 Feb 2020, 11:46
Forum: Ask For Help
Topic: Windows 10 built-in app, how to start or link. (Case: SoundRecorder)
Replies: 14
Views: 19565

Re: Windows 10 built-in app, how to start or link. (Case: SoundRecorder)

I know this is a very old post, but I thought I'd share an uber-easy way to get a UWP ("Metro") app's launch string of the form "PackageFamilyName!AppID" which can then be launched trivially using Run, shell:AppsFolder\PackageFamilyName!AppID Explained here: https twitter.com/JacqBens/status/1228916...
by JBensimon
09 Feb 2020, 08:26
Forum: Ask For Help
Topic: Odd CheckBox behavior when Gui quickly disabled
Replies: 5
Views: 833

Re: Odd CheckBox behavior when Gui quickly disabled

Thanks, Lexikos. And may I take this opportunity to also thank you and your contributors for the incredible job you're doing with AutoHotkey! I've used a lot of programming languages in my life, and aside from my first love APL in its day, nothing comes close to the richness with which you've imbued...
by JBensimon
06 Feb 2020, 12:54
Forum: Ask For Help
Topic: Odd CheckBox behavior when Gui quickly disabled
Replies: 5
Views: 833

Re: Odd CheckBox behavior when Gui quickly disabled

Okay, in trying to strip a long script down to the minimum required for demonstrating the issue (see below), I've concluded that the "visual delay" is caused NOT by disabling the GUI but rather by almost immediately running a console program (in my case PowerShell) via a WScript shell object and an ...
by JBensimon
03 Feb 2020, 10:47
Forum: Ask For Help
Topic: AttachConsole question
Replies: 0
Views: 305

AttachConsole question

I have a question about the following excellent code posted by user art in the old forum to demonstrate the use of AttachConsole on a hidden child CMD window for later use to capture StdOut and StdErr command output (while avoiding the briefly visible window "flash" of the alternative AllocConsole f...
by JBensimon
03 Feb 2020, 09:49
Forum: Ask For Help
Topic: Odd CheckBox behavior when Gui quickly disabled
Replies: 5
Views: 833

Odd CheckBox behavior when Gui quickly disabled

[Moderator's note: Topic moved from Bug Reports.] [Please see my follow-up reply for an accurate description of the issue -- it's nothing to do with " Gui, +Disabled " !] This is more an observation that a bug report: when the g-label code for a checkbox control immediately disables the GUI (Gui, +...
by JBensimon
08 Jan 2020, 13:59
Forum: Wish List
Topic: RegEx suggestion: conditional replacement
Replies: 2
Views: 1545

Re: RegEx suggestion: conditional replacement

swagfag wrote:
08 Jan 2020, 13:43
if thats a pcre2 feature, then forget about it.
I'm afraid you're right, it's a PCRE2 feature: search for ${<n>:+<string1>:<string2>} in https www.pcre.org /pcre2.txt.

Oh well. Thanks.

Jacques.
by JBensimon
08 Jan 2020, 13:27
Forum: Wish List
Topic: RegEx suggestion: conditional replacement
Replies: 2
Views: 1545

RegEx suggestion: conditional replacement

Hello, AutoHotkey Team. It seems PCRE supports an extended replacement syntax whereby, for example, the replacement specification ${1:+yes:no} would insert the “ yes ” part if capture group 1 participated in the match or the “ no ” part if it didn’t. It appears that the current RegExReplace() implem...
by JBensimon
07 Jan 2020, 09:43
Forum: Scripts and Functions
Topic: Formatting numbers with thousands separators
Replies: 5
Views: 874

Re: Formatting numbers with thousands separators

JBensimon wrote:
06 Jan 2020, 09:43
I'll analyze the patterns later ...
Okay, I get it now. Using "\G" = "start of match" and "(?=" = look-ahead assertion is brilliant stuff!

JB
by JBensimon
07 Jan 2020, 06:38
Forum: Scripts and Functions
Topic: Formatting numbers with thousands separators
Replies: 5
Views: 874

Re: Formatting numbers with thousands separators

jNizM wrote:
07 Jan 2020, 03:04
Or using WinAPI (GetNumberFormat / GetNumberFormatEx)
Another great solution! Thanks.
by JBensimon
06 Jan 2020, 09:43
Forum: Scripts and Functions
Topic: Formatting numbers with thousands separators
Replies: 5
Views: 874

Re: Formatting numbers with thousands separators

Wow! Thanks, Dewd. I'll analyze the patterns later, but I already see I'm not familiar with the $0 reference (or forgot it if I ever was).

Jacques.
by JBensimon
03 Jan 2020, 17:40
Forum: Scripts and Functions
Topic: Formatting numbers with thousands separators
Replies: 5
Views: 874

Formatting numbers with thousands separators

Since Format() apparently doesn't have an option to add thousands separators (commas in my case) to its results, I use the function below to get the job done (after using Format() if necessary). It takes a single argument with optional negative sign and fractional part, calculates the number N of se...
by JBensimon
21 Nov 2017, 20:58
Forum: Ask For Help
Topic: Display something on Windows 10 lock screen?
Replies: 3
Views: 1344

Re: Display something on Windows 10 lock screen?

Well, thanks again for putting me on the right track! I didn't even need to identify the Winlogon session to which the lock screen belongs (always 1 at startup anyway), I just launched the program that displays my status messages using SysInternals' PSExec with the -i (interactive) and -x (run on "W...

Go to advanced search