Search found 58 matches

by Randy31416
12 Jan 2023, 07:34
Forum: Ask for Help (v1)
Topic: Simple GUI seems to cause GDI handle leak Topic is solved
Replies: 4
Views: 394

Re: Simple GUI seems to cause GDI handle leak Topic is solved

The problem is caused by Stardock Window Blinds. When Window Blinds is enabled and a skin is selected (I tested two), then this autohotkey program shows the handle count increase I asked about. When the default skin -- i.e. no skin -- is selected in Window Blinds, then the handle count does not incr...
by Randy31416
11 Jan 2023, 21:27
Forum: Ask for Help (v1)
Topic: Simple GUI seems to cause GDI handle leak Topic is solved
Replies: 4
Views: 394

Re: Simple GUI seems to cause GDI handle leak Topic is solved

Unfortunately absolutely reproducible for me with V1.1.36.02 U64 with 21H2 19044.2486 X64. [EDIT] Spoke too soon. Not reproducible using a different user account on this system. So something on my regular account is affecting this. I'll track it down and post later. At the moment, then, the problem ...
by Randy31416
11 Jan 2023, 19:22
Forum: Ask for Help (v1)
Topic: Ideas on why SendMessage would FAIL and how to troubleshoot it
Replies: 7
Views: 833

Re: Ideas on why SendMessage would FAIL and how to troubleshoot it

Is it possible that the running big-script program has more than one window? The title operand ank_pid will retrieve a window for that PID, but is it the right one? Are all windows able to receive messages? I don't know the answer to this kind of question (being a windows hacker more than a windows ...
by Randy31416
11 Jan 2023, 17:32
Forum: Ask for Help (v1)
Topic: Simple GUI seems to cause GDI handle leak Topic is solved
Replies: 4
Views: 394

Simple GUI seems to cause GDI handle leak Topic is solved

Here is a small sample program (winnowed down from a real program) that apparently leaks a GDI handle every time a GUI is created. Fire it up, type "a" to create a gui, type "s" to destroy the gui, and repeat: each time one more GDI handle is shown as being used by the executable. a:: Gui, New, +Hwn...
by Randy31416
28 Sep 2022, 10:19
Forum: Ask for Help (v1)
Topic: How to access string added with AHK2EXE AddResource directive Topic is solved
Replies: 1
Views: 393

Re: How to access string added with AHK2EXE AddResource directive Topic is solved

Finally I found some code by SKAN and after a small adaptation it will do what I want. ;@Ahk2Exe-AddResource *6 G:\testfile.txt, testdata Size := ResRead(Data, "testdata") MsgBox, [%Size%] [%Data%] ExitApp ; ResRead() By SKAN, from http://www.autohotkey.com/board/topic/57631-crazy-scripting-resource...
by Randy31416
27 Sep 2022, 18:06
Forum: Ask for Help (v1)
Topic: How to access string added with AHK2EXE AddResource directive Topic is solved
Replies: 1
Views: 393

How to access string added with AHK2EXE AddResource directive Topic is solved

The AHK2EXE compiler directive AddResource allows a file to be incorporated into a compiled module. I want to put a small text file into the module and then access the text using code within the module. I've tried things like ;Ahk2Exe-AddResource *6 TestTextFile.txt, 33 which should add resource ite...
by Randy31416
30 Jul 2022, 18:07
Forum: Scripts and Functions (v1)
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 345
Views: 199411

Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!

Way back on page 9 a problem with mice locking up was mentioned. I will have to investigate the lockups on sleep issue, can't say that I have ever seen anything strange in that regard. It is thought to be caused by repeated plugging of devices and a 10-device limit in the underlying interception dll...
by Randy31416
04 Jul 2022, 07:51
Forum: Ask for Help (v1)
Topic: Hotkeys stop firing after a while
Replies: 4
Views: 638

Re: Hotkeys stop firing after a while

This question has been simplified and made much more specific in a new post. See the new post instead. New post:viewtopic.php?f=76&t=106067
by Randy31416
04 Jul 2022, 07:45
Forum: Ask for Help (v1)
Topic: Hotkey stops firing after another hotkey is executed
Replies: 0
Views: 280

Hotkey stops firing after another hotkey is executed

The code below is winnowed and simplified from a large program that does not work on recent releases of AHK. The large program works on V1.33.02 but not on more recent releases. This winnowed sample does not work on either the old or the new version. The program contains a hotkey !+I that overloads ...
by Randy31416
28 Jun 2022, 16:54
Forum: Ask for Help (v1)
Topic: Hotkeys stop firing after a while
Replies: 4
Views: 638

Re: Hotkeys stop firing after a while

The program has over 2400 hotkeys, roughly 80 #IFs, and 14500 non-comment lines, developed over more than a decade, and works perfectly with the old version. I'de been shortening it for a week or so and was down to 1100 or so hotkeys before asking here. And this is of course the obvious approach, ho...
by Randy31416
28 Jun 2022, 12:18
Forum: Ask for Help (v1)
Topic: Hotkeys stop firing after a while
Replies: 4
Views: 638

Hotkeys stop firing after a while

EDIT: This question has been simplified and made much more specific in a new post. See the new post instead. New post: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=106067 I have a very large AHK program, with lots and lots of hotkeys and lots and lots of #IFs, that has worked reliably unde...
by Randy31416
20 Jan 2022, 13:10
Forum: Scripts and Functions (v1)
Topic: Systemwide Scroll by panning
Replies: 1
Views: 559

Re: Systemwide Scroll by panning

What a nice idea. My trouble is that my MX Revolution mouse (the best ever made) (I have two working and four spare for parts) is out of hotkeys, and the buttons on the mouse are overloaded with functions that vary by context. But I am going to adapt, and steal LeftButtonDown + RightButtonDown to de...
by Randy31416
08 Jun 2019, 17:58
Forum: Scripts and Functions (v1)
Topic: Upcoming Ahk2Exe Changes (2024)
Replies: 626
Views: 181124

Re: Upcoming Ahk2Exe Changes (2019)

The temp files are gone! Thanks very much.
by Randy31416
07 Jun 2019, 19:13
Forum: Scripts and Functions (v1)
Topic: Upcoming Ahk2Exe Changes (2024)
Replies: 626
Views: 181124

Re: Upcoming Ahk2Exe Changes (2019)

The compiler leaves behind a scratch file in the user temp directory. The file name is of the form "~temp82727923.tmp" with the number changing on each compile. This scratch file is actually the compiled program -- it is identical to the compiled program created in the directory with the source. Sin...
by Randy31416
10 May 2019, 09:04
Forum: Announcements
Topic: Test build - InputHook, long paths, switch-case
Replies: 30
Views: 24718

Re: Test build - InputHook, long paths, switch-case

Switch is very nice addition, and I too would welcome it in V1 (so that I could go back to using a regular rather than a test version of AutoHotkey).
by Randy31416
30 Sep 2018, 16:19
Forum: Announcements
Topic: Test build - Obj.Count(), OnError(), long paths, experimental switch-case
Replies: 18
Views: 19691

Re: Test build - Obj.Count(), OnError(), long paths, experimental switch-case

Is there a good chance that the switch-case statement will make it into the main line release? Maybe even soon?
by Randy31416
24 Apr 2017, 20:23
Forum: Tips and Tricks (v1)
Topic: what are some ahk programming mistakes that tend to 'fail silently' with no warning and took you a long time to catch?
Replies: 20
Views: 20135

Re: what are some ahk programming mistakes that tend to 'fail silently' with no warning and took you a long time to catc

Number one error for me, time after time, and very hard to find (time after time): writing a plain equals sign (not a colon-equals) for assignment. Too many other languages in my mental baggage use the equals for assignment and the habit (maybe even muscle-memory habit) is very hard to break.
by Randy31416
17 Mar 2017, 13:24
Forum: Scripts and Functions (v1)
Topic: alphabet icons
Replies: 8
Views: 12432

Re: alphabet icons

These icons are truly gorgeous. If you are able to make them easily, I have a small request. I'd really like to have the letter "Q" icon in the same style as the letter "O" icon, with the body size similar and not squeezed to make room for the tail. As it stands, the Q is distinctly different from a...
by Randy31416
20 Mar 2016, 08:02
Forum: Scripts and Functions (v1)
Topic: Microsoft Surface Pro 3 pen barrel button customization
Replies: 16
Views: 18575

Re: Microsoft Surface Pro 3 pen barrel button customization

Can this script be used to reverse the actions between the top button and the side button? I suspect not. The top button is actually translated by driver software into F20 and F21 for single and double clicks (see the second post above, with the link given by lblb), and so it is trivial to do whate...
by Randy31416
23 Jun 2015, 10:16
Forum: Ask for Help (v1)
Topic: [Solved] Puzzle with asterisk hotkey prefix
Replies: 2
Views: 2615

Re: [Solved] Puzzle with asterisk hotkey prefix

Ah, me, dumbness dumbness everywhere . . . . I use a home-brew precompiler for AutoHotkey (it helps me to do various things more naturally for me). One thing it does is allow an asterisk to be used as a comment marker (like the semicolon in AutoHotkey) unless overridden for a specific line. The prec...

Go to advanced search