Search found 5512 matches

by lexikos
Today, 17:30
Forum: AutoHotkey v2 Development
Topic: commands as functions (AHK v2 functions for AHK v1)
Replies: 28
Views: 2707

Re: commands as functions (AHK v2 functions for AHK v1)

it cannot retrieve the coordinates of the caret if the control isn't focused. It cannot retrieve the coordinates of the caret if there is no caret. The control creates the caret when you focus it and destroys it when the control loses focus. What you are getting is not the position of the caret, bu...
by lexikos
Today, 17:22
Forum: AutoHotkey v2 Development
Topic: list of every object type/property/method
Replies: 13
Views: 268

Re: list of every object type/property/method

From an external/interface viewpoint, key-value pairs are a sub-type of properties . A property is just something you can get or set. The caller of an interface is not supposed to be concerned about how the property or method is implemented. Meta-functions are not invoked like normal methods. They m...
by lexikos
Today, 16:06
Forum: Bug Reports
Topic: Local and subroutines inside functions
Replies: 18
Views: 305

Re: Local and subroutines inside functions

It seems that I already answered that: (unless there was already an instance of that function on the stack, in which case the new thread would get a new instance of the function, so to speak) There would be an instance of the function on the stack only if it was called, not if a label inside the fun...
by lexikos
Today, 00:22
Forum: Bug Reports
Topic: Local and subroutines inside functions
Replies: 18
Views: 305

Re: Local and subroutines inside functions

Except if they're Critical, which many of my subroutines are [...] Perhaps what you mean is that in your script, there would never be an interrupting function call. This is not an exception to Helgef's statement. It is in fact possible for a Critical thread to be interrupted, in which case an inter...
by lexikos
Today, 00:05
Forum: Bug Reports
Topic: Remapping keyboard and noticed a strange backspace glitch
Replies: 3
Views: 74

Re: Remapping keyboard and noticed a strange backspace glitch

the # key on my keyboard ( shift + 3 ) This is not a key. It is two keys; a key combination. See remapping . When a script is launched, each remapping is translated into a pair of hotkeys. For example, a script containing a::b actually contains the following two hotkeys instead: *a:: SetKeyDelay -1...
by lexikos
Yesterday, 23:43
Forum: Bug Reports
Topic: Loop (files & folders) - question mark as wildcard
Replies: 1
Views: 57

Re: Loop (files & folders) - question mark as wildcard

AutoHotkey does not do pattern matching of filenames; it is handled by the OS. This is standard Windows behaviour. Your understanding of the ? is wrong. It does not match simply any single character. Rather it matches any character except .. If there is no character to match (at end of name, or befo...
by lexikos
Yesterday, 23:30
Forum: Ask For Help
Topic: AutoHotkey constantly needs restarting.
Replies: 13
Views: 165

Re: AutoHotkey constantly needs restarting.

I realize that toggling suspend can re-register them, but the documentation does say usually . As it's not a guarantee (or is it?), I don't immediately consider this a solution, but a workaround. The conditions for Suspend to re-register the hook are as noted in my previous post. Of course it's a w...
by lexikos
Yesterday, 22:42
Forum: Ask For Help
Topic: Hotstrings sometimes not working Topic is solved
Replies: 9
Views: 235

Re: Hotstrings sometimes not working Topic is solved

Instead of running as administrator (which is not recommended in the FAQ at all, merely listed as a "common workaround"), you can run the script with UI access. (I'm not entirely certain it will work from the Startup folder, but you can definitely launch it via Run from a normal script in ...
by lexikos
Yesterday, 22:29
Forum: Bug Reports
Topic: Local and subroutines inside functions
Replies: 18
Views: 305

Re: Local and subroutines inside functions

Putting aside the accuracy or inaccuracy of the explanation provided in the documentation and anything else, what the OP is doing is contrary to explicitly documented recommendations: Such subroutines should use only static and global variables (not locals) if their function is ever called normally....
by lexikos
14 Feb 2018, 00:39
Forum: Ask For Help
Topic: AutoHotkey constantly needs restarting.
Replies: 13
Views: 165

Re: AutoHotkey constantly needs restarting.

The hooks are never re-registered unless they were previously unregistered due to becoming unnecessary (e.g. Suspend On followed by Suspend Off may re-register the hook if there are no hook hotkeys/hotstrings exempt from suspension and the hook was not needed for any other purpose). AutoHotkey (like...
by lexikos
13 Feb 2018, 03:35
Forum: Ask For Help
Topic: Hotstrings sometimes not working Topic is solved
Replies: 9
Views: 235

Re: Hotstrings sometimes not working Topic is solved

Make sure Word is not running as administrator, such as if it is launched by another program which is running as administrator. By default, Windows prevents applications from hooking keyboard events intended for higher-privileged applications (as part of "UIPI"). If the script was waiting ...
by lexikos
12 Feb 2018, 04:24
Forum: Scripts and Functions
Topic: Get a TrayTip whenever your script is reloaded
Replies: 3
Views: 178

Re: Get a TrayTip whenever your script is reloaded

Why modify the file's attributes?

You can detect whether the script was reloaded by looking at its command line.
by lexikos
12 Feb 2018, 04:19
Forum: Ask For Help
Topic: how to check #IfWinActive, if window name starts with space?
Replies: 3
Views: 69

Re: how to check #IfWinActive, if window name starts with space?

Alternatively, you can escape the first space or use #If.

Code: [Select all]GeSHi © Codebox Plus

#IfWinActive ` Text line tfont1.vft
#If WinActive(" Text line tfont1.vft")
by lexikos
12 Feb 2018, 04:14
Forum: AutoHotkey v2 Development
Topic: Problems with property definition using OTB and omitting []
Replies: 2
Views: 65

Re: Problems with property definition using OTB and omitting []

It'll be fixed.

FYI, the bug only applies to property names shorter than three characters.
by lexikos
12 Feb 2018, 03:52
Forum: Ask For Help
Topic: Random "bugs" in Autohotkey? Topic is solved
Replies: 43
Views: 776

Re: Random "bugs" in Autohotkey? Topic is solved

Cerberus wrote:Then I am back at not understanding how {Blind} could help with hotkeys like ^d::^c

This may be beside the point, but ^d::^c is not a hotkey. It is a remapping, and as such already uses {Blind}.
by lexikos
12 Feb 2018, 03:28
Forum: Ask For Help
Topic: Random "bugs" in Autohotkey? Topic is solved
Replies: 43
Views: 776

Re: Random "bugs" in Autohotkey? Topic is solved

That means that modifiers no longer influence the output at all, While it seems to be true that modifiers do not affect which characters are produced by the {Text} mode or {U+nnnn}, some programs will not produce any text at all if the logical modifier state is incorrect. For instance, I think Fire...
by lexikos
11 Feb 2018, 01:03
Forum: Ask For Help
Topic: Running AHK via Task Scheduler with upgraded privileges
Replies: 2
Views: 70

Re: Running AHK via Task Scheduler with upgraded privileges

Unless you have set the task to run as the current user and with "Run only when user is logged on", the process will not run interactively. It will not be able to see or create windows in the current session, and hotkeys, Send, etc. will not work. It would be possible to work around this b...
by lexikos
11 Feb 2018, 00:40
Forum: Ask For Help
Topic: Problem with window menu activating
Replies: 2
Views: 53

Re: Problem with window menu activating

On the Danish layout, do you type {} with AltGr+7 and AltGr+0? I suppose that (AltGr) would be the link between your hotkey and the menu activating. AltGr should normally never activate a standard window menu since it is really a combination of LCtrl+RAlt, but maybe this isn't a standard window menu...
by lexikos
11 Feb 2018, 00:21
Forum: Ask For Help
Topic: Anybody using Menu, Tray, Icon, HICON:%hIcon% ? Topic is solved
Replies: 10
Views: 529

Re: Anybody using Menu, Tray, Icon, HICON:%hIcon% ? Topic is solved

The original script works with v1.1.28.00, but note: ⋅ Tray icons are not necessarily 16x16. ⋅ The icon you pass is also used in Alt-Tab and on the task bar in Windows 7 and later. If you pass a 16x16 icon, it looks pretty bad, especially on systems with >100% DPI. You can get th...
by lexikos
10 Feb 2018, 21:39
Forum: AutoHotkey v2 Development
Topic: WinGetClientPos and Window Spy
Replies: 3
Views: 93

Re: WinGetClientPos and Window Spy

Helgef wrote:As far as I can tell, WinGetClientPos isn't documented.
Oops.
It gives you [...] the coordinates of the lower right corner (in screen coords).
Double oops. It's not supposed to do that.

Go to advanced search