Skip to content

Instantly share code, notes, and snippets.

@rohinomiya
Created June 12, 2012 15:48
Show Gist options
  • Save rohinomiya/2918321 to your computer and use it in GitHub Desktop.
Save rohinomiya/2918321 to your computer and use it in GitHub Desktop.
Microsoft Excel/Wordで、意図せずにF1キーを押しヘルプが暴発するのを防ぐ ref: http://qiita.com/items/b655115b3ba3e1eaafbe
#If WinActive("Microsoft Excel") or WinActive("Microsoft Word")
$F1::
KeyWait, F1, T0.2 ; 0.2秒以上キーが離されなかったら、ErrorLevel=1
if ErrorLevel
Send, {F1}
else
TrayTip, 警告, ExcelやWordでヘルプを表示するには、F1キーを長押ししてください。
; キーが離されるまで待つ
keywait, F1
return
#If
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment