Sending laptop function key - AutoHotKey

a 夏天 提交于 2019-12-23 05:33:14

问题


I have trouble using my laptop's Fn+ function keys because they're all lined up without any space between them, and its not a shortcut, its time waste... it's HP Probook 4540s, you'd understand if used this...

So, I googled and found AHK. Now what I want to do is to send

Fn+F8 (volume down) and 
Fn+F9 (volume up) as another shortcut, i.e 
Fn+NumpadSub and 
Fn+NumpadAdd

Following is what I tried so far,

; Volume Down
126NumpadSub::
Send {vkFFsc126 down}
Send {F8}
Send {vkFFsc126 up}
return

126 is scan code for my Fn key. But it does not work.

Can I get any help on this?

Thanks


回答1:


If you want the shortcut Fn+NumpadSub, you would map them like so:

SC126 & NumpadSub::
    Send {SC126 down}
    Send {F8}
    Send {SC126 up}
Return

Here is the Keys List to use for future reference.



来源:https://stackoverflow.com/questions/18491754/sending-laptop-function-key-autohotkey

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!