構文

一々調べるのかったるいので適当に動かしながら解析。

MButton::
IfWinActive, ahk_class Hidemaru32Class
Send, {RButton}c
IfWinActive, ahk_class TextEditorWindow
  Send, {RButton}c
else
  Send,{MButton}
return


複数行は
MButton::
以下のように改行returnまでが一行文なんだと思う。

IfWinActive このウィンドウをアクティブの時やるぞと言う事

IfWinActive, ahk_class Hidemaru32Class


Send,  こいつ押すぞと言う事。

Send, {RButton}c

Run, こいつ動かしたいと言うプログラムを指定する

Run,%windir%\system32\calc.exe

GetKeyState, キー状態を取得

https://sites.google.com/site/autohotkeyjp/reference/commands/GetKeyState
GetKeyState, OutputVar, KeyName [, Mode]
GetKeyState,st,MButton,P

OutputVar 結果を格納する変数名
KeyName 状態を取得したいキーの名称。

タグ:

+ タグ編集
  • タグ:

このサイトはreCAPTCHAによって保護されており、Googleの プライバシーポリシー利用規約 が適用されます。

最終更新:2012年07月07日 23:28