Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#3712 closed Bug (No Bug)

HotKeySet not sets Alt+F4 in Windows 10

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

Description

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")
endfunc

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

while True
	Sleep (1000)
wend

This issue has been discussed two years ago:
https://www.autoitscript.com/forum/topic/189515-windows-10-intercept-altf4/

Attachments (0)

Change History (3)

comment:1 Changed 5 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 5 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

https://www.autoitscript.com/forum/topic/189515-windows-10-intercept-altf4/?do=findComment&comment=1360776
I also checked with AutoHotkey and I have the same positive result.

comment:3 Changed 5 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.

M23

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

Action
as closed The ticket will remain with no owner.
Author


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

 
Note: See TracTickets for help on using tickets.