AutoHotkey

概要

AutoHotkeyを流行らせるページより~

AutoHotkeyはホットキーへの機能の割り当てなど常駐ソフトの作成に特化したスクリプトエンジンである。
多彩なコマンドが用意されており、GUIを持ったプログラムの作成も可能。
GNU GENERAL PUBLIC LICENSE Version 2の下で配布されるフリーソフトで、C++で作られている。
公式サイト(http://www.autohotkey.com/)にて、インストーラー版とZIPアーカイブ版の2種類が配布されている。
インストーラーを実行すると、スタートメニュー、新規作成メニュー、関連付けに変更が加えられる。 

詳しい特徴と機能についての紹介は AutoHotkeyを流行らせるページ → イントロダクション でされています。

スクリプト

DllCall

ホットキーへの機能の割り当て以外に、GUIがあり、DllCall()(AutoHotkeyを流行らせるページ)がかなり強力な事もあり(向き不向きはありますが)大抵の事は出来ると思います。

COM

COM(Component Object Model - Wikipedia)を利用する事も出来ます。

FAQ

文字化け?ダメ文字?

AutoHotkey スレッド part6より~
Q:「~AチЯ㌔荏柿義形港餐汁秦疏蛋伝覗描冒輿倭兪啻嫣彖拜杼歔」を含む文字列がうまく扱えないよ
A:これらの文字の2バイト目が、AHKのエスケープ文字である0x60[`]なため。
  対処としてはこれらの文字の"直後"に「`」を記述する(例:「線形`代数」)か、
  #EscapeCharでエスケープ文字を別のものに変えるべし。 
関連
エスケープ文字AutoHotkey - #EscapeChar (and discussion of escape sequences) (ともにAutoHotkeyを流行らせるページ)

対策用の関数、ライブラリは参考リンク>ダメ文字問題対策を参照。

コンパイルした実行ファイルがアンチウイルスソフトに怒られるんだけど?

Compile_AHK II(mini info > Compile_AHK II) を試してみて下さい(08年12月14日現在)。"No UPX"オプションがあるので、UPXで圧縮しないでコンパイルしてみて下さい。 もしかしたら改善されるかもしれません。
関連用語:実行ファイル圧縮

参考リンク

AutoHotkey - Free Mouse and Keyboard Macro Program with Hotkeys and AutoText
公式サイト
AutoHotkeyを流行らせるページ
日本に於ける総本山

スクリプト

AutoHotkey Script Showcase
代表的なスクリプト。
AutoHotkey wiki - Category:Scripts - AutoHotkey
目当てのスクリプト(の記事)を見つけるのにForumから検索して探すのが大変なら、先ずこのページにあるリンクからあたってみましょう。
AutoHotkeyを流行らせるページ → My Scripts
AutoHotkeyを流行らせるページの管理人さんが作成したスクリプト、ライブラリ各種。

DllCall

API Wrappers - AutoHotkey wiki
WinAPI関連:WinAPI ( Windows API - Wikipedia )(Windowsが提供するさまざまな機能)にアクセス出来ます。
Windows Data Types lookup tool - Autohotkey forums
WinAPI関連:補助ツール
Crazy Scripting : A handy tool to lookup Win32 Constants - Autohotkey forums
WinAPI関連:補助ツール "W32C_R01.CSV is a listing of 11836 Constants"
Easy WinAPI - WinAPI Parser, DllCall with single hotkey - Autohotkey forums
WinAPI関連:補助ツール
StructParser (for C/C++ structs) - Autohotkey forums
補助ツール: →Known Issues - Autohotkey forums
OpenGL DllCalls - Autohotkey forums
OpenGL in AHK.
関連:Zippos OpenGL - AHK 3D-Engine. - Autohotkey forums(独語)操作解説(英語)-Keys - Autohotkey forums

COM

COM Wrappers - AutoHotkey wiki
いくつかCOMラッパーの提供もされています。
COM Standard Library - Autohotkey forums
関数ライブラリスクリプト#Include (ともにAutoHotkeyを流行らせるページ)
Embed an Internet Explorer control in your AHK Gui via COM - Autohotkey forums
"This is a standard library for IE/WebBrowser controls."
関連:IE and Gui Browser Com Tutorial - Autohotkey forums
Windows Scripting for Autohotkey - official homepage
"Embed VBScript or JScript directly in your Autohotkey programs."
Embedded Windows Scripting (VBScript & JScript) and COM - official thread in the Autohotkey forums
AutoHotkeyを流行らせるページ → My Scripts → ActiveX
WSH等で使われるActiveXObjectを扱えるようにする

ダメ文字問題対策

デバッグ あれこれ

AutoHotkeyを流行らせるページ → スクリプト → スクリプトのデバッグ
スクリプトが期待通りに動作しているかを確認するには
AutoHotkeyを流行らせるページ → リファレンス → OutputDebug
デバッガ(DebugView for Windowsなど)に文字列を出力
Debugging - Autohotkey forums
Debug helper スクリプト など
Debug() [Func] - Autohotkey forums
if you're working with #Include files
function must be called from itself rather than calling from d.ahk
to show correct info for currently executing function/filename 
debugging using A_LIneNumber - Autohotkey forums
RunDebugView.ahk - DebugView for Windowsを利用。
Gui, Show bug - Autohotkey forums
Trace.ahk - DebugView for Windowsを利用。
関連ツール:DebugView for Windows - © Microsoft Corporation.
デバッグトレースを表示
使い方 - 参考:
差をつけるデバッグ術! ~ 知られざるログ出力 - プログラミング徹底解説

mini info

Beta version pre-v1.0.48: Up to 3x faster performance - Autohotkey forums
赤くは無いけど、AutoHotkey本体のBetaバージョン(pre-v1.0.48)は三倍速くなってるそうです。
Compile_AHK II - for those who compile! - Autohotkey forums
Update of 2008-11-05 以降)"No UPX"オプションが付きました。
コンパイラ最新版(Update of 2008-11-25)
(コンパイラそのものは公式サイトで配布されているものには標準で付いて来ます)
SciTE4AutoHotkeyメニューの日本語化and日本語入力を考えてみた
SciTE4AutoHotkeyを日本語化出来そうです。(多分)

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS