如何将字母键('w')映射到功能键('F6')?

How to map a letter key like('w') to a function key like('F6')?

我键盘上的“w”键无法使用,所以我想将其重新映射到 'F6'。但是当我写

w::F6
return 

在 .ahk 文件中 运行 它。仍然没有找到结果。 谁能帮我解决这个问题?(使用屏幕键盘只是为了键入 w 键实际上是在浪费时间) 谢谢

*w::
SetKeyDelay -1   ; If the destination key is a mouse button, SetMouseDelay is used instead.
Send {Blind}{F6 DownR}  ; DownR is like Down except that other Send commands in the script won't assume "F6" should stay down during their Send.
return

*w up::
SetKeyDelay -1  ;
Send {Blind}{F6 up}
return