Search found 32 matches

by kkleinfelter
06 Jun 2023, 11:52
Forum: Ask for Help (v2)
Topic: Blocking the Special Lock Key
Replies: 5
Views: 398

Re: Blocking the Special Lock Key

Good suggestions. Thanks! Relocating ESC is an interesting approach, but rewiring my brain to do that may be impossible at this point. I've been whacking the upper-leftmost key for ESC since 1980. I don't think I can rewire those neurons! Entirely disabling the lock feature could get me fired for vi...
by kkleinfelter
06 Jun 2023, 11:15
Forum: Ask for Help (v2)
Topic: Blocking the Special Lock Key
Replies: 5
Views: 398

Blocking the Special Lock Key

I need to block/disable a special key on my HP Zbook laptop. There's a key with an icon that looks like |❏| . When I press it, Windows behaves as if I'd pressed Winkey-L. i.e. It locks the workstation. The problem is, that's a smaller-sized key immediately next to a smaller-sized ESC key, so I often...
by kkleinfelter
23 Mar 2023, 13:59
Forum: Ask for Help (v1)
Topic: Hotkey, CapsLock & Shift & e
Replies: 1
Views: 256

Hotkey, CapsLock & Shift & e

Using the Hotkey statement, how do I define a hotkey for CapsLock and Shift and e? I want to use the Hotkey statement, instead of double-colon, because I need to define it conditionally. Both of the following fail with a "not a valid key name." Hotkey, CapsLock & +e, CloseAllExplorer Hotkey, CapsLoc...
by kkleinfelter
19 Feb 2023, 22:12
Forum: Ask for Help (v1)
Topic: Override HDR Shortcut Alt-Winkey-B?
Replies: 9
Views: 845

Re: Override HDR Shortcut Alt-Winkey-B?

Ah. I just looked at the main article. The additional steps you reference are in the dialog below the article.

Code: Select all

Get-AppxPackage -AllUsers -PackageTypeFilter Bundle *xboxgaming* | Remove-AppxPackage -AllUsers
is sufficient to get Windows to stop with the HDR hotkey. Thank you!
by kkleinfelter
19 Feb 2023, 21:18
Forum: Ask for Help (v1)
Topic: Override HDR Shortcut Alt-Winkey-B?
Replies: 9
Views: 845

Re: Override HDR Shortcut Alt-Winkey-B?

Thank you to the pointers. I have already disabled Game Bar and HDR. Pressing Alt-Winkey-B re-enables it. Shopping for a non-HDR monitor isn't an option because... I'm using a laptop.
by kkleinfelter
19 Feb 2023, 21:15
Forum: Ask for Help (v1)
Topic: Override HDR Shortcut Alt-Winkey-B?
Replies: 9
Views: 845

Re: Override HDR Shortcut Alt-Winkey-B?

They are out-and-out over the top with Alt-Winkey-B. Using the Keyboard Manager of PowerToys, one can remap most shortcuts, but not that one.

This looks like a challenge. ;-)
by kkleinfelter
19 Feb 2023, 21:03
Forum: Ask for Help (v1)
Topic: Override HDR Shortcut Alt-Winkey-B?
Replies: 9
Views: 845

Re: Override HDR Shortcut Alt-Winkey-B?

Oh man! They are really pushy about that particular hotkey. \HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\DisabledHotkeys can disable other Windows hotkeys involving Winkey, but not Winkey-B and Alt-Winkey-B.
by kkleinfelter
19 Feb 2023, 20:22
Forum: Ask for Help (v1)
Topic: Override HDR Shortcut Alt-Winkey-B?
Replies: 9
Views: 845

Re: Override HDR Shortcut Alt-Winkey-B?

I was there first, then Windows claimed it. I'm not giving it up. I'll write my own keyboard driver if I must. That being said, I've noticed that my AHK double-colon definition for alt-winkey-b is getting executed. The problem is that Windows is also doing its HDR mode switch, which involves a super...
by kkleinfelter
19 Feb 2023, 12:05
Forum: Ask for Help (v1)
Topic: Override HDR Shortcut Alt-Winkey-B?
Replies: 9
Views: 845

Override HDR Shortcut Alt-Winkey-B?

How can I override the Windows 11 shortcut for enabling/disabling HDR -- Alt-Winkey-B? Back in the day of Win 10, I defined a bunch of personal shortcut keys, using Alt-Winkey. Then Win 11 added a bunch of Game Bar shortcuts which also use Alt-Winkey. I've disabled the Game Bar, which gave me back s...
by kkleinfelter
23 Jan 2023, 14:00
Forum: Ask for Help (v1)
Topic: Unique Icon for PDF Files
Replies: 2
Views: 314

Re: Unique Icon for PDF Files

How odd! This is only a problem with Chrome as my default PDF reader, but not with Edge. i.e. I can tell Windows 11 that I want Edge to open my PDF files, and Windows selects a nice "PDF" icon for PDF files, not the Edge icon or the Chrome icon. But if I make Chrome the PDF opener, I get the same ic...
by kkleinfelter
22 Jan 2023, 21:48
Forum: Ask for Help (v1)
Topic: Unique Icon for PDF Files
Replies: 2
Views: 314

Unique Icon for PDF Files

I there a (good) way to use Autohotkey to make windows show an icon for my PDF files that is not the same as my browser icon, when the browser is the default PDF opener? e.g. I use Chrome to render PDF files, so Windows shows the Chrome icon for all my PDF files. I want an icon that indicates the fi...
by kkleinfelter
08 May 2020, 14:05
Forum: Ask for Help (v1)
Topic: Timer Causes Dropped File Output
Replies: 3
Views: 361

Timer Causes Dropped File Output

It appears that if a timer fires while a FileAppend is writing to a file on a network shared folder, the I/O does not complete. How can I ensure the file write gets resumed and run to completion? Do I need to wrap all my calls to FileAppend with "Critical On" and "Critical Off"? I don't know for CER...
by kkleinfelter
13 Apr 2020, 14:14
Forum: Ask for Help (v1)
Topic: Detect when Windows screen lock/password is active
Replies: 14
Views: 10193

Re: Detect when Windows screen lock/password is active

This may have changed with (maybe a recent release of) Windows 10. I dunno how consistent it is, but calling

Code: Select all

WinGetTitle,ID,A
returns "Windows Default Lock Screen" into ID for me.
by kkleinfelter
10 Jan 2020, 08:46
Forum: Ask for Help (v1)
Topic: Automating IE Inside a JExplorer
Replies: 0
Views: 386

Automating IE Inside a JExplorer

I need to automate an IE window hosted inside a JExplorer process. wbGet doesn't find it. How can I get a wb object for an IE hosted inside a JExplorer? To provide some background, we have lots of Java Web Start applications. Java executes them in a JP2Launcher.exe process. When these Java apps need...
by kkleinfelter
23 Sep 2019, 07:53
Forum: Scripts and Functions (v1)
Topic: hWnd_to_hBmp() : Capture full screen, Window, Control or user defined area of these
Replies: 23
Views: 9601

Re: hWnd_to_hBmp() : Capture full screen, Window, Control or user defined area of these

My solution was to combine WinGetPosEx and ClientToWin. ClientToWin addressed the bulk of the big black strip, and WinGetPosEx addressed the remaining sliver. As a reminder, my complaint was NOT about the stripe itself, but about being able to identify an 'accurate' XY coordinate within the screensh...
by kkleinfelter
18 Sep 2019, 14:24
Forum: Scripts and Functions (v1)
Topic: hWnd_to_hBmp() : Capture full screen, Window, Control or user defined area of these
Replies: 23
Views: 9601

Re: hWnd_to_hBmp() : Capture full screen, Window, Control or user defined area of these

OK. I think I've got a similar, but not identical problem. I understand the Aero changes to the title bar and the width of the shadow around the window accounts for the narrow black stripe, but when I turn off the Address Bar in IE, I get a *big* black stripe at the bottom of the window. The narrow ...
by kkleinfelter
17 Sep 2019, 11:50
Forum: Ask for Help (v1)
Topic: Dark Band Around GDI+ Screenshot
Replies: 2
Views: 591

Dark Band Around GDI+ Screenshot

When I take a screenshot of a File Explorer window using GDI+, the title bar come out with a black background, although the icons are rendered properly. My real File Explorer window has white background. The status bar and the scroll bar also come out black. Attached image shows the title bar. The b...
by kkleinfelter
15 Sep 2019, 15:13
Forum: Ask for Help (v1)
Topic: Process Left-click AFTER the Active Window Change
Replies: 3
Views: 918

Re: Process Left-click AFTER the Active Window Change

I gave up on directly getting click coordinates relative to the *clicked* (not the active) window. My 'solution' was to get the coordinates in *screen* mode, get the origin of the window the mouse is over (in screen mode), and subtract the window origin from the mouse position. i.e. I calculated the...
by kkleinfelter
10 Sep 2019, 14:22
Forum: Ask for Help (v1)
Topic: Process Left-click AFTER the Active Window Change
Replies: 3
Views: 918

Re: Process Left-click AFTER the Active Window Change

No, that still isn't working. I keep getting negative values for X or Y. I'm clearly not getting the X/Y coordinate relative to the clicked window because I'm clicking in the window and I'm getting things like -400
by kkleinfelter
10 Sep 2019, 14:03
Forum: Ask for Help (v1)
Topic: Process Left-click AFTER the Active Window Change
Replies: 3
Views: 918

Re: Process Left-click AFTER the Active Window Change

Well, the best I can come up with is the following. Is there a better way? Is there a drawback to my method I should be aware of?

Code: Select all

    CoordMode, Mouse, Window
    MouseGetPos, mx, my, buttonHwnd
    WinActivate, ahk_id %buttonHwnd%
    MouseGetPos, mx, my, buttonHwnd

Go to advanced search