22/06/18 22:14:08 XWcC7GlY0.net
>>863
AutoHotInterceptionを使うのが楽
参考にどうぞ
-- StrokePlus.net
sp.SendKeys("{F13}");
-- AHK
#SingleInstance force
#Persistent
#include ..\Lib\AutoHotInterception.ahk
global AHI := new AutoHotInterception()
global keyboardId := AHI.GetKeyboardId(0x046D, 0xC534) ;logikeyboard
return
F13::
AHI.SendKeyEvent(keyboardId, 56, 1)
AHI.SendKeyEvent(keyboardId, 42, 1)
AHI.SendKeyEvent(keyboardId, 311, 1)
AHI.SendKeyEvent(keyboardId, 311, 0)
AHI.SendKeyEvent(keyboardId, 42, 0)
AHI.SendKeyEvent(keyboardId, 56, 0)
return