Search found 118 matches
- 17 Apr 2021, 10:50
- Forum: Ask for Help (v1)
- Topic: Script breaks when Run As Admin Topic is solved
- Replies: 4
- Views: 439
Re: Script breaks when Run As Admin Topic is solved
Most AHK scripts do run as intended even when elevated. The issue with your particular script is that File Explorer (which is attempting to perform the drag/drop operation) always runs at the Medium integrity level (i.e. non-elevated) whereas your target window (the AHK script's) runs at the High in...
- 04 Apr 2021, 12:46
- Forum: Ask for Help (v1)
- Topic: Are individual commands interruptible?
- Replies: 7
- Views: 339
Re: Are individual commands interruptible?
:D :D Again, yes, in the particular case of a Send command (which was a convenient example for my question), there are ways to "break up the action" to give other hotkeys or menu items a chance to execute, but the question was more general: can any programmable action in any way interrupt a single r...
- 04 Apr 2021, 12:13
- Forum: Ask for Help (v1)
- Topic: Are individual commands interruptible?
- Replies: 7
- Views: 339
Re: Are individual commands interruptible?
Well sure, you're only sending one character at a time, so other hotkeys have plenty of opportunities to gain control as each Send or Sleep command ends. Now try this instead: ; Create long string (2560 characters) x := "123456789`n" Loop, 8 x .= x Return F2:: ExitApp F3:: Reload F4:: SendRaw, %x% G...
- 04 Apr 2021, 11:04
- Forum: Ask for Help (v1)
- Topic: Are individual commands interruptible?
- Replies: 7
- Views: 339
Re: Are individual commands interruptible?
As I mentioned, the standard tray menu's Reload (and Exit ) do work, but in the absence of the standard tray menu ( Menu, Tray, NoStandard ), no custom action I can find (including custom menu items and hotkeys) can replicate these behaviors -- everything I can do programmatically is blocked until t...
- 04 Apr 2021, 10:00
- Forum: Ask for Help (v1)
- Topic: Are individual commands interruptible?
- Replies: 7
- Views: 339
Are individual commands interruptible?
As the Subject line asks, can anything (hotkey, timer, menu item, etc.) interrupt a script while it's executing a single (potentially long-running) command? For example, is there any mechanism within a script that would be able to interrupt a SendRaw, %LotsOfText% command, even if only by restarting...
- 27 Feb 2021, 10:11
- Forum: Suggestions on Documentation Improvements
- Topic: Per-Drive Default Directory
- Replies: 7
- Views: 1963
Re: Per-Drive Default Directory
Oh, one more thing: about your observation regarding the copy of notepad.exe in \Windows not displaying an icon (even though it's identical to the one in \Windows\System32 ), this is the result of the fact that notepad.exe itself doesn't contain any icon resource (in recent Windows versions) -- the ...
- 27 Feb 2021, 09:09
- Forum: Suggestions on Documentation Improvements
- Topic: Per-Drive Default Directory
- Replies: 7
- Views: 1963
Re: Per-Drive Default Directory
Thank you for taking the time to provide such a detailed reply, lexikos . You are quite right that the other Raymond Chen article you cite completely undermines the statement in the article I cited that "Win32 does not have the concept of a separate current directory for each drive" , which seemed r...
- 15 Feb 2021, 09:52
- Forum: Suggestions on Documentation Improvements
- Topic: Output to STDOUT/STDERR Topic is solved
- Replies: 3
- Views: 1466
Re: Output to STDOUT/STDERR Topic is solved
Since you ask, the same clarification should be added to the #ErrorStdOut doc page which states: "Because AutoHotkey is not a console program, errors will not appear at the command prompt directly." There's a also the doc page for Loop (read file contents) which states " Standard Output (stdout): [....
- 13 Feb 2021, 13:41
- Forum: Wish List
- Topic: Compiler suggestions
- Replies: 2
- Views: 699
Re: Compiler suggestions
Thanks. I'll check it out.
- 07 Feb 2021, 12:02
- Forum: Wish List
- Topic: Compiler suggestions
- Replies: 2
- Views: 699
Compiler suggestions
A compiler directive to sign the resulting executable with a specified certificate would be useful. It would make it easy to recompile and sign utilities with a "locally trusted" cert for each enterprise environment where a script will be used, allowing all such scripts (and future updates) to be wh...
- 23 Dec 2020, 08:15
- Forum: Suggestions on Documentation Improvements
- Topic: Output to STDOUT/STDERR Topic is solved
- Replies: 3
- Views: 1466
Output to STDOUT/STDERR Topic is solved
Now that those great compiler directives have been incorporated into the official AutoHotkey release, maybe the following caveat found in the FileAppend documentation "However, text sent to stdout will not appear at the command prompt it was launched from" should be amended with something like "...,...
- 21 Dec 2020, 12:39
- Forum: Suggestions on Documentation Improvements
- Topic: Per-Drive Default Directory
- Replies: 7
- Views: 1963
Re: Per-Drive Default Directory
Hi. You may have misunderstood my question: I was referring not to the script's working directory but rather to the fact that scripts obey per-drive default directories when launched from CMD . For example, if the following commands are executed in CMD, CD /D C:\TEMP CD D:\TEMP\SUB1 CD E:\FOLDER\SUB...
- 20 Dec 2020, 22:11
- Forum: Suggestions on Documentation Improvements
- Topic: Per-Drive Default Directory
- Replies: 7
- Views: 1963
Per-Drive Default Directory
I notice that, when launched from CMD.exe , an AHK script inherits the concept of a per-drive default directory (which is unique to CMD among Windows apps) and that file operations (for example Loop, Files, D:* ) obey these per-drive defaults if they were set in CMD before launch via CD commands. Is...
- 25 Nov 2020, 07:01
- Forum: Wish List
- Topic: Enabling hotkeys while a menu is being displayed
- Replies: 2
- Views: 1987
Re: Enabling hotkeys while a menu is being displayed
Thanks for the reply. Only saw it just now -- notification must have gone to Spam.
- 11 Aug 2020, 10:31
- Forum: Wish List
- Topic: Enabling hotkeys while a menu is being displayed
- Replies: 2
- Views: 1987
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...
- 11 Aug 2020, 10:23
- Forum: Scripts and Functions (v1)
- Topic: Recognizing right-click on a menu item
- Replies: 1
- Views: 1251
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...
- 03 Aug 2020, 10:32
- Forum: Scripts and Functions (v1)
- Topic: Recognizing right-click on a menu item
- Replies: 1
- Views: 1251
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...
- 02 Aug 2020, 14:14
- Forum: Bug Reports
- Topic: A_WinDir bug ... Topic is solved
- Replies: 2
- Views: 2335
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
I see this issue is fixed in v1.1.33.x, as is the FileGetShortcut/FileCreateShortcut icon resource ID issue. Thanks.
JB
- 08 Apr 2020, 10:12
- Forum: Bug Reports
- Topic: A_WinDir bug ... Topic is solved
- Replies: 2
- Views: 2335
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 ...
- 12 Mar 2020, 08:56
- Forum: Tips and Tricks (v1)
- Topic: Menu +Break/+BarBreak observation
- Replies: 2
- Views: 4906
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...