4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Microsoft Excel/Wordで、意図せずにF1キーを押しヘルプが暴発するのを防ぐ

Posted at

AutoHotKeyをインストールした状態で、以下のスクリプトを実行して常駐させれば、
例えばExcelで、F2を押すつもりがF1キーを押してしまい、
ヘルプが起動してしまってイライラすることがなくなります。

delay_f1.ahk
#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
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?