Hi!
I came up with this little script to easily close Windows Explorer windows:
#Persistent
$ESC::
Send, {ESC}
If WinActive("ahk_class ExploreWClass")
Send !{F4}
return
It works great, it just has
one problem: you can't use ESC anymore to abort renaming of files, like when you accidentally deleted important parts of the file name and can't just press enter to "OK" the change.
So I need some way to 'only send Alt+F4 (!{F4}) if ESC is pressed twice within one second'. Got any ideas for a smart solution? I bet you do!