-1

On Windows, when you press Win+f, the Windows Search utility will pop up. I want to redefine this short cut and point to another program (yes, it's also a search utility, everything). I tried the following code but it doesn't work.

; open everything.exe
HotKeySet("#f", "open_everything")

; # win
; ^ ctrl
; + shift
; ! alt

While 1
    Sleep(200)
WEnd

; open everything
Func open_everything()
    MsgBox(4, "", "everything ... ")
EndFunc

When I change the short cut to Win+z, everything works.

; open everything.exe
HotKeySet("#z", "open_everything")

; # win
; ^ ctrl
; + shift
; ! alt

While 1
    Sleep(200)
WEnd

; open everything
Func open_everything()
    MsgBox(4, "", "everything ... ")
EndFunc

Any ideas of this problem? Thanks

Just a learner
  • 26,690
  • 50
  • 155
  • 234

1 Answers1

1

From the AutoIt help file. Page is Function Reference -> HotKeySet. The following hotkeys cannot be set: Win+B,D,E,F,L,M,R,U; and Win+Shift+M

These are built-in Windows shortcuts. Note: Win+B and Win+L might only be reserved on Windows XP and above.

Much easier is to for example bind the key on Ctrl+F and get used to pressing that.

Jos van Egmond
  • 2,370
  • 15
  • 19