Search found 6406 matches

by lexikos
05 Oct 2019, 05:37
Forum: AutoHotkey v2 Development
Topic: Changes to %fn%(), fn.call() or func('fn') syntax?
Replies: 32
Views: 2008

Re: Changes to %fn%(), fn.call() or func('fn') syntax?

Functions may be nested, in which case Func() will only return them if called within the same scope. If Func("func2") returned the value of a callable variable, the same would apply to local variables. (That is if we permit non-existent functions at loadtime.) This is a problem. Load-time optimizati...
by lexikos
05 Oct 2019, 04:55
Forum: Bug Reports
Topic: Sizing GUI-Elements: dpi dpiaware has to be set to "True/PM" to work on Win 8.1 and above
Replies: 10
Views: 2820

Re: Sizing GUI-Elements: dpi dpiaware has to be set to "True/PM" to work on Win 8.1 and above

That does change things. The scaling done by some of the APIs seems to depend on which monitor contained the script's last active window. This appears to work for enabling per-monitor DPI awareness on Windows 10 (probably 1603 and later): DllCall("SetThreadDpiAwarenessContext", "ptr", -3, "ptr") The...
by lexikos
05 Oct 2019, 01:29
Forum: AutoHotkey v2 Development
Topic: Changes to %fn%(), fn.call() or func('fn') syntax?
Replies: 32
Views: 2008

Re: Changes to %fn%(), fn.call() or func('fn') syntax?

sirksel, I think we are on the same wavelength, unlike some others. I guess it just seemed to me like derived functions are more of an advanced concept, so those who use them will probably understand concepts like shadowing in the namespace. One doesn't have to be intentionally using function refere...
by lexikos
04 Oct 2019, 23:55
Forum: AutoHotkey v2 Help
Topic: fat-arrows and methods Topic is solved
Replies: 10
Views: 499

Re: fat-arrows and methods Topic is solved

(I suppose this is getting off-topic.) I consider AutoHotkey neither a prototype-based language nor an object-oriented one. When objects were added, long after the language began, objects were prototype-based. Then there came COM objects, which are not prototype-based (and built-in objects, which we...
by lexikos
04 Oct 2019, 23:02
Forum: Scripts and Functions
Topic: DPI() - writing friendlier DPI-Aware AutoHotkey GUIs
Replies: 21
Views: 3556

Re: DPI() - writing friendlier DPI-Aware AutoHotkey GUIs

ahk7 I think this is ingenious, but I'm confused about how you use it. If I'm reading your posts correctly, you use DPI() to increase the scaling that's already done by +DPIScale. Does it scale the numbers by the same amount again that +DPIScale would already scale it? So if the scale is 150%, you ...
by lexikos
04 Oct 2019, 21:29
Forum: AutoHotkey v2 Help
Topic: fat-arrows and methods Topic is solved
Replies: 10
Views: 499

Re: fat-arrows and methods Topic is solved

Perhaps literal object definitions could allow definitions of method and dynamic properties, so [...] counter := { interval, 1000, timer, (this) => ToolTip(++this.count), Start(n := 0) => ((this.count := n), SetTimer(this.timer, this.interval), ToolTip("Counter started")), Stop() => (SetTimer(this....
by lexikos
04 Oct 2019, 20:16
Forum: Wish List
Topic: Hotkey sequences
Replies: 5
Views: 390

Re: Hotkey sequences

The existing feature set gives you the flexibility to implement almost whatever kind of system you would want. If repetition of code is the problem, you can wrap it into a reusable function, class, or set of functions or classes (and ideally share it around). One can utilize Input , InputHook() , Ho...
by lexikos
04 Oct 2019, 18:51
Forum: AutoHotkey v2 Development
Topic: Changes to %fn%(), fn.call() or func('fn') syntax?
Replies: 32
Views: 2008

Re: Changes to %fn%(), fn.call() or func('fn') syntax?

iseahound There is no part of your post (on page 1) that is correct. The functor class was just boilerplate code that is no longer needed. It was never possible to call the class (or any other variable) directly as though it were a function. (Edit: You can call it indirectly as a method of some oth...
by lexikos
04 Oct 2019, 18:30
Forum: Ask For Help
Topic: [Semi-Solved] Problem with AutoHotkeyU64_UIA.exe after version 1.1.31.00
Replies: 16
Views: 752

Re: [Semi-Solved] Problem with AutoHotkeyU64_UIA.exe after version 1.1.31.00

@DRocks
I think you've missed the purpose of this topic, and are confusing UIAccess with UI Automation.
by lexikos
04 Oct 2019, 18:25
Forum: AutoHotkey v2 Help
Topic: How to target a program and simulate f9 key
Replies: 1
Views: 123

Re: How to target a program and simulate f9 key

You need to: Wait for the window to appear (or wait for it to become active if it activates itself). Activate it (if it doesn't activate itself). Send F9. WinWait "ahk_exe acsuploadw.exe" ; If it opens multiple windows, narrow it down by including the window title before ahk_exe. WinActivate Send "{...
by lexikos
04 Oct 2019, 05:11
Forum: Ask For Help
Topic: [Semi-Solved] Problem with AutoHotkeyU64_UIA.exe after version 1.1.31.00
Replies: 16
Views: 752

Re: [Semi-Solved] Problem with AutoHotkeyU64_UIA.exe after version 1.1.31.00

It appears the private key was missing. That would probably be a result of it specifically being deleted. The installer does not create it unless it is also creating the certificate. Since the help file has nothing to do with UIA, I suggest you start a new topic, and post more detail, such as the ac...
by lexikos
04 Oct 2019, 04:00
Forum: Ask For Help
Topic: [Semi-Solved] Problem with AutoHotkeyU64_UIA.exe after version 1.1.31.00
Replies: 16
Views: 752

Re: [Semi-Solved] Problem with AutoHotkeyU64_UIA.exe after version 1.1.31.00

teadrinker Run this as administrator and then try reinstalling. MsgBox % "Certificate " (DeleteCertFromStore("Root", "AutoHotkey") ? "deleted" : "not found") MsgBox % "Key container " (DeleteKeySet("AutoHotkey") ? "deleted" : "not deleted (" A_LastError ")") DeleteKeySet(Name) { return DllCall("Adv...
by lexikos
03 Oct 2019, 17:02
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 606
Views: 139632

Re: Suggestions on documentation improvements

In the case of a pointer-to-pointer or double pointer, Ptr should be appended the "*" or P suffix when the parameter points to a single numeric value such as LPDWORD or int* , or in functions that output a pointer via LPVOID* or similar. This is clearly not correct. "when the parameter points to a ...
by lexikos
03 Oct 2019, 16:36
Forum: Ask For Help
Topic: Recreate Windows 10 alt-tab look & feel Topic is solved
Replies: 13
Views: 664

Re: Recreate Windows 10 alt-tab look & feel Topic is solved

If you set the overall transparency of the window, it will of course affect everything on the window. To have two levels of transparency with SetLayeredWindowAttributes, you just need two windows. I imagine that is why the taskbar has both TaskListThumbnailWnd and TaskListOverlayWnd. In general, SLW...
by lexikos
03 Oct 2019, 05:55
Forum: Ask For Help
Topic: [Semi-Solved] Problem with AutoHotkeyU64_UIA.exe after version 1.1.31.00
Replies: 16
Views: 752

Re: Problem with AutoHotkeyU64_UIA.exe after version 1.1.31.00

@teadrinker Change throw on line 9 (indicated in the error message) to throw A_LastError. This should show the reason for CertOpenStore failing.
by lexikos
03 Oct 2019, 05:43
Forum: Bug Reports
Topic: Switch Bug!
Replies: 4
Views: 298

Re: Switch Bug!

It's a bug. Also affects throw %a% and case %a%.
by lexikos
02 Oct 2019, 03:59
Forum: AutoHotkey v2 Development
Topic: Changes to %fn%(), fn.call() or func('fn') syntax?
Replies: 32
Views: 2008

Re: Changes to %fn%(), fn.call() or func('fn') syntax?

I don't know what you read, but Call is the default method. If you "call" the object itself, Call is the method that executes. From memory, this applies to: All cases where AutoHotkey calls a function object in response to an event, such as SetTimer, Hotkey, etc. Function objects being called as met...
by lexikos
02 Oct 2019, 02:11
Forum: Ask For Help
Topic: [Semi-Solved] Problem with AutoHotkeyU64_UIA.exe after version 1.1.31.00
Replies: 16
Views: 752

Re: Problem with AutoHotkeyU64_UIA.exe after version 1.1.31.00

It is not commented out. I suppose that either you or your editor (syntax highlighting?) are interpreting the comment syntax incorrectly. EnableUIAccess_Struct is a function. The last instance of this name in the file is the top of the function definition. You need everything up to and including the...
by lexikos
30 Sep 2019, 01:26
Forum: Ask For Help
Topic: [Semi-Solved] Problem with AutoHotkeyU64_UIA.exe after version 1.1.31.00
Replies: 16
Views: 752

Re: Problem with AutoHotkeyU64_UIA.exe after version 1.1.31.00

I see no reason that you should need to restart Windows, but also no reason not to try it. The URL file is created anew by the installer, whereas the exe files are "existing" files that have come from my computer. I suppose they were compiled at Sep 28 2019 08:30:03 AM . My system shows ‎Saturday, ‎...
by lexikos
30 Sep 2019, 01:10
Forum: Ask For Help
Topic: Recreate Windows 10 alt-tab look & feel Topic is solved
Replies: 13
Views: 664

Re: Recreate Windows 10 alt-tab look & feel Topic is solved

There seem to be only one TaskListThumbnailWnd and one TaskListOverlayWnd, regardless of how many thumbnails are being shown. Both windows have the WS_EX_LAYERED style. The overlay window seems to be destroyed and recreated at times, while the thumbnail window is not. This registers two thumbnails o...

Go to advanced search