Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#3712 closed Bug (No Bug)

HotKeySet not sets Alt+F4 in Windows 10

Reported by: NSUSpray Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc: nsu.spray@…


When I run this script and press Alt+F4, the current active window closes, as if the script was not running at all.

func foo ()
	MsgBox (4096, "", "Alt+F4 is pressed")

HotKeySet ("!{F4}", "foo")

while True
	Sleep (1000)

This issue has been discussed two years ago:

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by BrewManNH

  • Resolution set to No Bug
  • Status changed from new to closed

It appears that that key combination is reserved in Windows 10, you can use it with another modifier key such as control or shift, but not by itself.
Use something else.

comment:2 Changed 3 years ago by NSUSpray

By no means! In the topic to which I gave the link, noticed:

AutoHotKey work without any problem under Windows 10
I also checked with AutoHotkey and I have the same positive result.

comment:3 Changed 3 years ago by Melba23

The fact that AHK honours the combination means nothing - if they wish to mess with Windows reserved keys than that is their problem, not ours.


Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.