Adobe Readerキーバインド変更

参考1:http://lukewarm.s101.xrea.com/index.html
参考2:http://winopbykb.blog84.fc2.com/blog-entry-23.html


概要
AutoHotkeyを使ってAdobe Readerキーバインドを変更


拡張子が.ahkのファイルを作り,以下を記述

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input

#IfWinActive ahk_class AcrobatSDIWindow
	j::Down
	J::PgDn
	k::Up
	K::PgUp
	h::^PgUp
	l::^PgDn
	g up::
		if(A_PriorHotkey = A_ThisHotKey)
			Send, {Home}
	return
	G::End
	sc033::^+F6
	.::^F6
	d::^F4
	z::
		Input, InputChar, C I L1 T2, {Esc}, o,i
		if ErrorLevel=Match
		{
			if InputChar=o
				Send, ^-
			if InputChar=i
				Send, ^`;
		}
	return
	z up::
		if(A_PriorHotkey = A_ThisHotKey)
			Send, ^2
	return
#IfWinActive

右クリック→Compile Script

.exeファイルが出来るのでこれをスタートアップに突っ込む


以下,バインドマップ

コマンド動作コマンド動作
jスクロールダウンG最後のページ
J次の画面,前の文章
kスクロールアップ.次の文章
K前の画面d閉じる
h次のページziズームイン
l前のページzoズームアウト
gg先頭のページzz幅に合わせる

zzで倍率を戻すようにしたいがやり方が分らない
やり方判明
上のコード内容を修正
なぜこれでうまくいくのか,いまいち分らない