Alt+1 & Alt+2 from Numeric Keypad Opening AHK History Window

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
keyes
Posts: 33
Joined: 27 Jun 2017, 21:42

Alt+1 & Alt+2 from Numeric Keypad Opening AHK History Window

25 Oct 2021, 12:29

When I type special characters using (Alt+_) 1 or 2 in the numeric keypad the AHK History window opens.

Checked the code several times and there's no reason for the AHK History window to open when pressing Alt+1 or Alt+2 using the numeric keypad. KeyHistory is only used once like this:

Code: Select all

!3::KeyHistory
Even if this was the default behavior, it wouldn't happen when two different keys are used (1 & 2).

Had to use this to stop this behavior:

Code: Select all

~!NumPad1::Return
~!NumPad2::Return
User avatar
mikeyww
Posts: 26883
Joined: 09 Sep 2014, 18:38

Re: Alt+1 & Alt+2 from Numeric Keypad Opening AHK History Window

25 Oct 2021, 12:40

The following script alone works only with Alt+3.

Code: Select all

!3::KeyHistory
keyes
Posts: 33
Joined: 27 Jun 2017, 21:42

Re: Alt+1 & Alt+2 from Numeric Keypad Opening AHK History Window

25 Oct 2021, 15:59

I've noticed this happening before, whenever I change code it takes awhile for the new code to update properly.

It doesn't matter if I click "Reload This Script" or quit then run the script again.

Now it's not doing it anymore and the computer wasn't rebooted.

With AHK not all changes are reflected immediately even though I'm refreshing the only instance.
Last edited by keyes on 25 Oct 2021, 16:01, edited 1 time in total.
User avatar
mikeyww
Posts: 26883
Joined: 09 Sep 2014, 18:38

Re: Alt+1 & Alt+2 from Numeric Keypad Opening AHK History Window

25 Oct 2021, 16:01

You are mistaken. There must be another explanation for your finding. When a script is loaded, it runs and is active immediately, unless it is attacked by antivirus software, or some other program conflicts with it. You can try my script alone, with no other code, and no other scripts running. Test it in Notepad.
Last edited by mikeyww on 25 Oct 2021, 16:03, edited 1 time in total.
keyes
Posts: 33
Joined: 27 Jun 2017, 21:42

Re: Alt+1 & Alt+2 from Numeric Keypad Opening AHK History Window

25 Oct 2021, 16:02

The part I'm not mistaken is that after changing code and the code not working as expected, I've terminated the single instance and ran a new one (besides refreshing several times).

It has happened more times than I could justify as it's just my mistake.

Next time will pay attention to the task manager instead of the icon in the taskbar and watch for any discrepancies.
Last edited by keyes on 25 Oct 2021, 16:04, edited 1 time in total.
User avatar
mikeyww
Posts: 26883
Joined: 09 Sep 2014, 18:38

Re: Alt+1 & Alt+2 from Numeric Keypad Opening AHK History Window

25 Oct 2021, 16:03

Close all other windows and non-Windows tray-resident programs. Run the one-liner again. Test in Notepad.
keyes
Posts: 33
Joined: 27 Jun 2017, 21:42

Re: Alt+1 & Alt+2 from Numeric Keypad Opening AHK History Window

25 Oct 2021, 16:06

Edited the post to mention the use of Task Manager and not relying on the System Tray icon.

That would partially explain it since the code uses #SingleInstance force.

EDIT: The other thing is that AHK is not running with admin priviledges.

Thanks

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], mikeyww and 216 guests