Search found 9454 matches

by lexikos
24 May 2024, 21:56
Forum: Wish List
Topic: [v2] __Static property and the :: operator
Replies: 16
Views: 3065

Re: [v2] __Static property and the :: operator

Supposing that this.__Static refers to the class of the object, this.__Static.SOME_PROPERTY1 := n may create a new property in a class derived from the one where the static property is formally defined. As a shorthand for accessing static properties, would that not cause surprising behaviour in some...
by lexikos
24 May 2024, 21:28
Forum: Wish List
Topic: Hotstring option to only replace right-most needed characters.
Replies: 6
Views: 1438

Re: Hotstring option to only replace right-most needed characters.

Optimized auto-replace hotstrings to avoid retyping an identical leading part, where feasible.
Source: v2.1-alpha.8
by lexikos
24 May 2024, 20:51
Forum: Ask for Help (v2)
Topic: Can the font color of the menu be changed?
Replies: 2
Views: 224

Re: Can the font color of the menu be changed?

In order to change the font color, you have to draw the items yourself by using an owner-drawn menu. It's been done before for v1 on the old forum, but I don't know whether there are any v2 examples around.
by lexikos
24 May 2024, 20:47
Forum: Ask for Help (v2)
Topic: how to deal with daily driver script hanging - detecting, reloading from outside script?
Replies: 1
Views: 244

Re: how to deal with daily driver script hanging - detecting, reloading from outside script?

If you can open the script's main window via the tray icon and view the Lines/Key history in the View menu, you may find that the script isn't hung, just not responding to hotkeys. That would usually be a result of the OS silently deregistering the keyboard hook, perhaps because of an unresponsive #...
by lexikos
24 May 2024, 20:41
Forum: Ask for Help (v2)
Topic: How to suppress Ctrl + shift hotkey for notepad that enables right to left text formatting?
Replies: 2
Views: 279

Re: Possible bug when suppressing modifier hotkeys

Why would you think that #1 is a bug? Suppressing Shift (Ctrl is not suppressed) means that the logical state of the Shift key does not change. If the logical state of the Shift key is not down , the hotkey >^+a should not fire. This is the correct behaviour. If you don't want the suffix (Shift) to ...
by lexikos
24 May 2024, 20:18
Forum: Ask for Help (v2)
Topic: Access Is Denied for WinGetProcessName in V2 EXE
Replies: 20
Views: 1996

Re: Access Is Denied for WinGetProcessName in V2 EXE

You can move it, if necessary, as I mentioned earlier. My point wasn't that the thread is misplaced, but that the placement of the thread has implications about what I would consider the subject of discussion, and how I respond to it. Initially, I wasn't aware that having an incomplete process name...
by lexikos
24 May 2024, 19:41
Forum: Suggestions on Documentation Improvements
Topic: menu setIcon The obtained icon is incorrect
Replies: 5
Views: 558

Re: menu setIcon The obtained icon is incorrect

Windows tends to use IDs, not a sequential index; AutoHotkey uses negative numbers for IDs. I don't recall there being any standard OS-provided GUI or utility that will show you an icon number or ID. It's not the documentation author's place to guess where you might have obtained an icon number and ...
by lexikos
24 May 2024, 19:17
Forum: Wish List
Topic: [v2.1] Passing unset VarRef
Replies: 15
Views: 2089

Re: [v2.1] Passing unset VarRef

a[item] ??= c is already implemented. both are cryptic and obfuscate the issue they are solving. In the other topic, I recommended avoiding ByRef when you want to know whether the parameter was omitted, due to the inherent ambiguity. When I posted the option in the other topic, I reiterated that I ...
by lexikos
24 May 2024, 17:48
Forum: Scripts and Functions (v2)
Topic: Apply hotkeys to the new context menu on Windows 11
Replies: 10
Views: 3838

Re: Apply hotkeys to the new context menu on Windows 11

It appears that the popup window now has the title "Pop-upHost" instead of "PopupHost". :roll:

Class is still Microsoft.UI.Content.PopupWindowSiteBridge.
by lexikos
24 May 2024, 06:53
Forum: AutoHotkey Development
Topic: Modules
Replies: 7
Views: 568

Re: Modules

niCode No, I was mainly referring to Import and Export, which were allowed to be user-defined functions in v2.0. Feel free to bring up any similar issues. There's a bug which prevents assume-global functions from resolving built-in names or import * . I assume that's where you're seeing the issue. ...
by lexikos
24 May 2024, 06:13
Forum: AutoHotkey Development
Topic: Load time warnings not captured by /ErrorStdOut
Replies: 2
Views: 723

Re: Load time warnings not captured by /ErrorStdOut

Warnings can be trapped by adding #Warn x , StdOut . Since you're already parsing some directives, you could parse #Warn directives and divert only the warnings which are enabled. Note: ErrorStdOut uses stderr for "legacy" reasons, but #Warn uses stdout. Warning dialogs can also be detected fairly e...
by lexikos
24 May 2024, 01:39
Forum: Wish List
Topic: [v2.1] Passing unset VarRef
Replies: 15
Views: 2089

Re: [v2.1] Passing unset VarRef

Did you see the option I posted in the other topic ? I implemented short-circuiting %a?% ?? b and (%a?% := b) ?? c , but reverted it because it was inconsistent with the policy of prohibiting (a?.b := c) ?? d . I copied that restriction from JavaScript and deferred thiking about it further. I'm not ...
by lexikos
24 May 2024, 00:59
Forum: AutoHotkey Development
Topic: Modules
Replies: 7
Views: 568

Modules

Added Modules , #Module, Import and Export. Source: v2.1-alpha.11 For context, I would recommed reading the documentation first. #Module #Module X is analogous to ending the current file, beginning Lib\X.ahk and loading it as a module without importing it. It just defines a new module and adds it t...
by lexikos
24 May 2024, 00:07
Forum: AutoHotkey Development
Topic: v2.1-alpha.11
Replies: 10
Views: 7241

v2.1-alpha.11

Added Modules , #Module, Import and Export. Changes applicable only to alpha users: Fixed leak from virtual references which return objects. Fixed __Set (broken by v2.1-alpha.10). Fixed leaks when the debugger enumerates properties. E9067C39D2B7B5E82A16FEAF792871B5BC69B54273DEC8E2199E4B14B778EFC6 Au...
by lexikos
23 May 2024, 23:50
Forum: Ask for Help (v2)
Topic: OnExit reason is always "0" (v2.0.15)
Replies: 9
Views: 744

Re: OnExist reason is always "0" (v2.0.15)

I'll never understand this "this" thing :( It's just a parameter, not difficult to understand. These are basically equivalent: class runbox { static Exit(o*) { } } runbox.DefineProp("Exit", {call: runbox_Exit}) class runbox { } runbox_Exit(this, o*) { } ... and not much different to: runbox := {Exi...
by lexikos
23 May 2024, 22:46
Forum: Bug Reports
Topic: Error trying to download the V1 and V2 files with current version number
Replies: 25
Views: 2624

Re: Error trying to download the V1 and V2 files with current version number

What would I know? Download just uses a few Internet functions from wininet, as anyone can see.
by lexikos
23 May 2024, 22:25
Forum: Ask for Help (v2)
Topic: Keywait can not detect long press for ctrl key at AutoHotkey V2
Replies: 4
Views: 393

Re: Keywait can not detect long press for ctrl key at AutoHotkey V2

Could you explain why the behavior is different for the 'p' key and the LCtrl/F14 keys? I did already, based on the information you gave in your first post: However, it seems that the Keywait detection does not work for certain keys, such as the Ctrl key and function keys above F13 that have been s...
by lexikos
16 May 2024, 04:00
Forum: Bug Reports
Topic: Debugger bug Topic is solved
Replies: 1
Views: 344

Re: Debugger bug Topic is solved

Fixed by v2.0.15.
by lexikos
16 May 2024, 03:54
Forum: Ask for Help (v2)
Topic: Can I determine if the Always property has been used in SetCapsLockState? Topic is solved
Replies: 2
Views: 301

Re: Can I determine if the Always property has been used in SetCapsLockState? Topic is solved

You do not need to "trace every instance of SetCapsLockState". Off the top of my head, you could: Define your own MySetCapsLockState function and use search and replace to replace calls in your script, no "tracing" needed. Your function can call the built-in one before/after recording whether the Al...
by lexikos
16 May 2024, 03:14
Forum: Ask for Help (v2)
Topic: Keywait can not detect long press for ctrl key at AutoHotkey V2
Replies: 4
Views: 393

Re: Keywait can not detect long press for ctrl key at AutoHotkey V2

If you must ask "is this a bug?", it likely isn't. Please post in Ask for Help in future. I have moved the topic. When you omit the L option, KeyWait will wait until the key is not being physically pressed down. You are not physically pressing down LCtrl or F14, so it does not wait. If you use the L...

Go to advanced search