Search found 5514 matches

by lexikos
18 Feb 2018, 17:14
Forum: Ask For Help
Topic: AutoHotkey constantly needs restarting.
Replies: 16
Views: 240

Re: AutoHotkey constantly needs restarting.

It was my implication that page file is only used after RAM is expended, And yet, I explicitly stated otherwise. What I did not say anything about was "slowdowns" or programs being paged out. If, as you say, the page file is never used before the RAM is expended, and if RAM is never expen...
by lexikos
18 Feb 2018, 06:02
Forum: AutoHotkey v2 Development
Topic: AutoHotkey v2 alpha (UPDATES)
Replies: 43
Views: 22543

v2.0-a089-3de22ab

Fixed WinGetClientPos to return size, not bottom-right position. Fixed unary operators following an empty parameter. Merged v1.1.28.00. Made A_ListLines writable. Fixed properties like "x{" and "xx{" in class definitions. Changed stdin (*) scripts to not prepend working dir to ti...
by lexikos
17 Feb 2018, 17:30
Forum: AutoHotkey v2 Development
Topic: commands as functions (AHK v2 functions for AHK v1)
Replies: 29
Views: 2755

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
17 Feb 2018, 17:22
Forum: AutoHotkey v2 Development
Topic: list of every object type/property/method
Replies: 13
Views: 304

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
17 Feb 2018, 16:06
Forum: Bug Reports
Topic: Local and subroutines inside functions
Replies: 18
Views: 391

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
17 Feb 2018, 00:22
Forum: Bug Reports
Topic: Local and subroutines inside functions
Replies: 18
Views: 391

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
17 Feb 2018, 00:05
Forum: Bug Reports
Topic: Remapping keyboard and noticed a strange backspace glitch
Replies: 3
Views: 83

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
16 Feb 2018, 23:43
Forum: Bug Reports
Topic: Loop (files & folders) - question mark as wildcard
Replies: 1
Views: 67

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
16 Feb 2018, 23:30
Forum: Ask For Help
Topic: AutoHotkey constantly needs restarting.
Replies: 16
Views: 240

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
16 Feb 2018, 22:42
Forum: Ask For Help
Topic: Hotstrings sometimes not working Topic is solved
Replies: 10
Views: 262

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
16 Feb 2018, 22:29
Forum: Bug Reports
Topic: Local and subroutines inside functions
Replies: 18
Views: 391

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: 16
Views: 240

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: 10
Views: 262

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: 184

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: 75

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: 79

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: 832

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: 832

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: 72

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: 54

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...

Go to advanced search