AutoHotkey Script for microsoft sculpt keyboard and mouse

>>AutoHotkey Script for microsoft sculpt keyboard and mouse

AutoHotkey Script for microsoft sculpt keyboard and mouse

備忘録:microsoft sculpt keyboard and mouseで、Logicoolのキーボードやマウスのように扱うための、AutoHotKeyスクリプトです。

注意点:マイクロソフト キーボード & マウスセンターをアンインストールすること

AutoHotkey script for microsoft sculpt keyboard and mouse.

IMPORTANT: You must UNINSTALL microsoft mouse and keyboard center.

 

;
; AutoHotkey (Version: 1.x) script
; for microsoft sculpt keyboard and mouse
; Language: English
; Platform: Windows 7
; Author: Ayaemon Nakamura
;

;
; IMPORTANT: You must UNINSTALL microsoft mouse and keyboard center.
;

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

;
; Disable needless keys
;

SetCapsLockState, off
SetNumLockState, on
SetScrollLockState, off
$NumLock::Return
$ScrollLock::Return
$NumpadIns::Return
CapsLock::Ctrl

;
; Microsoft sculpt comfort mouse
;

;Middle button
MButton::
Send ^{w}
KeyWait MButton
return

;Swipe down
LWin & Tab::
Send {Browser_Back}
return

;Swipe up
LWin & Backspace::
Send {Browser_Forward}
return

;Side button
RWin::
Send {Browser_Refresh}
KeyWait RWin
return

;Wheel right
WheelRight::
Send ^{Tab}
KeyWait WheelRight, T0.28
return

;Wheel left
WheelLeft::
Send ^+{Tab}
KeyWait WheelLeft, T0.28
return

;
; Microsoft sculpt comfort keyboard
;

;Using appskey as Fn key.
$AppsKey::Return
AppsKey & F1::Run chrome.exe
AppsKey & F2::Run thunderbird.exe
AppsKey & F11::Run swriter.exe
AppsKey & F12::Run scalc.exe

AppsKey & Esc::
; Sleep/Suspend:
DllCall("PowrProfSetSuspendState", "int", 0, "int", 0, "int", 0)
return

Ins::PrintScreen

;
; Debug
;

;#InstallMouseHook
;1::KeyHistory

By |2016-11-29T09:03:44+00:002015年 1月26日(月)|未分類|