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

-自動化 - 所謂マクロ。 
-ホットキー - スクリプトを常駐、特定のキーやボタンが押されたときにひとつ、あるいは複数の機能を割り当て。
-[[Hotstring:http://lukewarm.s101.xrea.com/Hotstrings.html]] - 日本語での利用には多少工夫が必要。
-GUI - GUI を設定できる。CUIのソフトのフロントエンドなどはおてのもの。 
-[[リマップ:http://lukewarm.s101.xrea.com/remap.html]] - キーやボタンをリマップできる。 特定のウィンドウやウインドウ毎にリマップすることも可能。
-実行ファイル - 実行に必要なファイルとともに自作スクリプトを実行ファイルに変換可能。AHKがインストールされていない環境に向けても配布が可能に。

詳しい特徴と機能についての紹介は [[AutoHotkeyを流行らせるページ → イントロダクション:http://lukewarm.s101.xrea.com/Introduction.html]] でされています。

//''初心者の場合''、作業の省力化、効率化、自動化などを目的にホットキーへの機能の割り当て、キーボードリマップ、マクロを組む、といった用途でAHK(AutoHotkey)を利用するのは問題ないんですが、(きっかけとしてはありかもしれませんが)'''プログラミング学習目的'''でAHKの選択はしない方が賢明だと思います。

**スクリプト [#e4410784]
//解説待ち

***初心者 & ニューカマー へのアドバイス [#d33e3319]
[[Tutorial for Newbies:http://www.autohotkey.com/forum/post-182060.html&sid=63cea50bd3c51fedb26cacc900e3838b#182060]] より引用~
>As a person who started using AHK having absolutely zero programming experience (never taken a class or read a book on computers in my life), I will give you my 2 cents on learning it.
>
>I think exploring the forum works great if you have even a little bit of background in this area. If, like me, you have none, I would learn it in the following order (this is how I would do it if I had to do it over again). Razz My reasoning here is that for a person starting from scratch, you need to learn concepts before learning commands, and the forum is geared more towards commands.
>
>First read the [[Tutorial:http://www.autohotkey.com/docs/Tutorial.htm]], the [[Scripts:http://www.autohotkey.com/docs/Scripts.htm]] page, and then the [[FAQ:http://www.autohotkey.com/docs/FAQ.htm]]. Afterwards, I would recommend learning concepts in the following order:
>
+ [[Hotstrings:http://www.autohotkey.com/docs/Hotstrings.htm]]
+ [[Hotkeys:http://www.autohotkey.com/docs/Hotkeys.htm]]
+ [[Mouse Clicks:http://www.autohotkey.com/docs/commands/Click.htm]] & Mouse HotKeys
+ [[Variables:http://www.autohotkey.com/docs/Variables.htm#Intro]]
+ Loops - especially Parsing Loops
+ String commands - (e.g. StringMid, StringReplace)
+ [[If:http://www.autohotkey.com/docs/commands/IfEqual.htm]],[[Else statements:http://www.autohotkey.com/docs/commands/Else.htm]]
+ [[Expressions:http://www.autohotkey.com/docs/Variables.htm#Expressions]]
+ [[Arrays:http://www.autohotkey.com/docs/misc/Arrays.htm]] & Dynamic variables - ([[StringSplit:http://www.autohotkey.com/docs/commands/StringSplit.htm]])
+ [[GoSub:http://www.autohotkey.com/docs/commands/Gosub.htm]] & [[Functions:http://www.autohotkey.com/docs/Functions.htm]]
+ [[GUIs:http://www.autohotkey.com/docs/commands/Gui.htm]]
+ [[Windows Messages:http://www.autohotkey.com/docs/misc/SendMessage.htm]]
+ [[DllCall:http://www.autohotkey.com/docs/commands/DllCall.htm]]
<
>The first 3 you will not necessarily use very often once you become proficient with the program; but they are the easiest to comprehend and implement. Everything from Variables through GUIs is what I would consider the "core" of the program that you will use repeatedly to write virtually all of your scripts with. Windows Messages and DLLCalls are the advanced techniques that are the most powerful but most complicated. The average user will probably never have the need and desire to master these two.
>Of course this list is not set in stone, and you may be learning multiple items at once (for example you may want to scratch the surface of GUIs right away), but I think all of the items are important to learn about if you plan to use AHK more than a few times, and I tried to arrange them in an order that would be most logical and systematic.
>
>When you're wondering how to accomplish a specific task in AHK, remember that most of the commands have a common naming scheme to identify what they do. For example:
>
>Commands dealing with files start with &color(#FFA527,){''File''};.&br;
Commands dealing with windows start with &color(#808027,){''Win''};.&br;
Commands dealing with text start with &color(#EE82ED,){''String''};.&br;
>
>Similarly:
>
>Commands that retrieve data from somewhere contain &color(#F40000,){''Get''};.&br;
Commands that apply data to somewhere contain &color(#4A8000,){''Set''};.
>
>Combining the two previous structures, we have commands like:
>
>&color(#FFA527,){''File''};&color(#F40000,){''Get''};Size - Retrieve the size of a file.&br;
&color(#808027,){''Win''};&color(#F40000,){''Get''};Title - Retrieve the title of a window.&br;
&color(#EE82ED,){''String''};&color(#F40000,){''Get''};Pos - Retrieve the position of a piece of text inside a larger piece (like a sentence in a paragraph).&br;
>
>&color(#FFA527,){''File''};&color(#4A8000,){''Set''};Time - Apply a new Time Stamp to a file.&br;
&color(#808027,){''Win''};&color(#4A8000,){''Set''};Title - Apply a new title to a window.&br;
&color(#4A8000,){''Set''};Timer - Apply a new Timer, which is a command or group of commands that run at timed intervals.
>
>
>Good Luck, and remember that nobody was born knowing any of this. It takes time.
>_________________
>http://autohotkey.net/~jaco0646/

~引用ここまで ~
Original Post by [[jaco0646:http://autohotkey.net/~jaco0646/]]~

いずれ日本語にも翻訳され、どこかで公開される事でしょう。それまでは翻訳サービス等利用するなりして下さい。

引用しっぱなしで終わり、というのも乱暴すぎる気がするので、上記の引用文中の序列リスト(番号付きリスト)の部分についてだけ、 [[AutoHotkeyを流行らせるページ:http://lukewarm.s101.xrea.com/]] さんで対応しているであろうページを紹介してみます。
+[[Hotstring:http://lukewarm.s101.xrea.com/Hotstrings.html]]
+[[ホットキー:http://lukewarm.s101.xrea.com/Hotkeys.html]]
+Mouse [[Click:http://lukewarm.s101.xrea.com/commands/Click.html]] &amp; Mouse HotKeys
+[[変数:http://lukewarm.s101.xrea.com/Scripts.html#var]] , [[演算・変数・関数関連:http://lukewarm.s101.xrea.com/commands/index.html#calc]]
+[[繰り返し処理:http://lukewarm.s101.xrea.com/Scripts.html#loop]] , [[Loop (parse a string):http://lukewarm.s101.xrea.com/commands/LoopParse.html]]
+[[文字列操作:http://lukewarm.s101.xrea.com/commands/index.html#str]] (e.g. [[StringMid:http://lukewarm.s101.xrea.com/commands/StringMid.html]] , [[StringReplace:http://lukewarm.s101.xrea.com/commands/StringReplace.html]])
+[[If(式):http://lukewarm.s101.xrea.com/commands/IfExpression.html]] &amp; [[If/IfEqual/IfNotEqual/IfLess/IfLessOrEqual/IfGreater/IfGreaterOrEqual:http://lukewarm.s101.xrea.com/commands/IfEqual.html]] , [[Else:http://lukewarm.s101.xrea.com/commands/Else.html]]
+[[式:http://lukewarm.s101.xrea.com/Expression.html]]
+[[配列:http://lukewarm.s101.xrea.com/misc/Arrays.html]]  &amp; Dynamic variables,( [[StringSplit:http://lukewarm.s101.xrea.com/commands/StringSplit.html]] )
+[[Gosub:http://lukewarm.s101.xrea.com/commands/Gosub.html]] &amp; [[関数:http://lukewarm.s101.xrea.com/Function.html]]
+[[GUI表示:http://lukewarm.s101.xrea.com/commands/index.html#gui]]
+[[PostMessage / SendMessage:http://lukewarm.s101.xrea.com/commands/PostMessage.html]] &amp; [[PostMessage/SendMessage Tutorial:http://lukewarm.s101.xrea.com/misc/SendMessage.html]]
+[[DllCall():http://lukewarm.s101.xrea.com/commands/DllCall.html]]

多分、最初は [[AutoHotkeyを流行らせるページ:http://lukewarm.s101.xrea.com/]] さんのトップページを上から順に見ていく事と思いますが、
スクリプトを自分で書くようになるにはスクリプトの概要を理解する目的で [[スクリプト仕様:http://lukewarm.s101.xrea.com/Scripts.html]] のページを繰り返し読むことになるかと思います。

-[[Tutorial for Newbies:http://www.autohotkey.com/forum/topic47791.html]] - 新(別)スレッド(Aug 18, 2009):教材あり(AHK_Quizzer.zip)

if とか for とか loop とかさっぱり分からない、って人は Wikipediaの記事(([[制御構造 - Wikipedia:http://ja.wikipedia.org/wiki/%E5%88%B6%E5%BE%A1%E6%A7%8B%E9%80%A0]] , [[Category:制御構造 - Wikipedia:http://ja.wikipedia.org/wiki/Category:%E5%88%B6%E5%BE%A1%E6%A7%8B%E9%80%A0]]))や [[オヌヌメサイト &gt; その他参考等のページ>オヌヌメサイト#hc96ac23]] などを参考にするとか、もっと直感的なツールは無いの?って人にはScratch(([[Scratch Home imagine, program, share:http://scratch.mit.edu/]] 、 参考 : [[非プログラマのためのプログラミング講座 - @IT:http://www.atmarkit.co.jp/fwcr/design/benkyo/program01/01.html]])) などから(あくまで制御構造の理解を目的として)始めてみるのもいいのかもしれません。

**DllCall [#b8001daa]
ホットキーへの機能の割り当て以外に、GUIがあり、DllCall(([[DllCall() - AutoHotkeyを流行らせるページ:http://lukewarm.s101.xrea.com/commands/DllCall.html]]))がかなり強力な事もあり(向き不向きはありますが)大抵の事は出来ると思います。

//解説待ち

-→[[参考リンク>#yc223dfb]]

**COM [#xe018ac5]
COM(([[Component Object Model - Wikipedia:http://ja.wikipedia.org/wiki/Component_Object_Model]]))を利用する事も出来ます。

//解説待ち

-→[[参考リンク>#udcd699d]]

**FAQ [#kcda885c]
-[[AutoHotkey FAQ:http://www.autohotkey.com/docs/FAQ.htm]]
-[[Tutorial for Newbies:http://www.autohotkey.com/forum/topic29204.html]]
-AutoHotkeyを流行らせるページ →[[FAQのスレ:http://lukewarm.s101.xrea.com/test/read.cgi/bbs/1200674082/]]
-[[Tips N Tricks:http://www.autohotkey.com/forum/topic8795.html]]
-[[engunneer's home thread:http://www.autohotkey.com/forum/topic21919.html]] - ミニ FAQ : "This is a thread for me to keep common answers handy for forum linking"

***Q.文字化け?ダメ文字? [#oc2f06dc]
:A.|

--エスケープ文字(([[エスケープ文字 - AutoHotkeyを流行らせるページ:http://lukewarm.s101.xrea.com/Scripts.htm#escape]])):#EscapeChar(([[#EscapeChar - AutoHotkeyを流行らせるページ:http://lukewarm.s101.xrea.com/commands/_EscapeChar.htm]]))での対処
---[[AutoHotkey スレッド part6:http://pc11.2ch.net/test/read.cgi/software/1219130051/]]より~
>
 Q:「~AチЯ㌔荏柿義形港餐汁秦疏蛋伝覗描冒輿倭兪啻嫣彖拜杼歔」を含む文字列がうまく扱えないよ
 A:これらの文字の2バイト目が、AHKのエスケープ文字である0x60[`]なため。
   対処としてはこれらの文字の"直後"に「`」を記述する(例:「線形`代数」)か、
   #EscapeCharでエスケープ文字を別のものに変えるべし。 
-- [`] は アポストロフィ ''では無く'' back quote(バッククォート) or backtick または グレイヴ・アクセント or アクサングラーブ
//(([[グレイヴ・アクセント - Wikipedia:http://ja.wikipedia.org/wiki/%E3%82%B0%E3%83%AC%E3%82%A4%E3%83%B4%E3%83%BB%E3%82%A2%E3%82%AF%E3%82%BB%E3%83%B3%E3%83%88#.E3.82.B3.E3.83.B3.E3.83.94.E3.83.A5.E3.83.BC.E3.82.BF]]))

--対策用の関数、ライブラリ - [[参考リンク&gt;ダメ文字問題対策>#w52e9b62]]を参照。

***Q.コンパイルした実行ファイルがアンチウイルスソフトに怒られるんだけど? [#ia1516a8]
:A.|[[Compile_AHK II>AutoHotKey#Compile_AHK2]] を試してみて下さい(08年12月14日現在)。"No UPX"オプションがあるので、UPXで圧縮しないでコンパイルしてみて下さい。
もしかしたら改善されるかもしれません。~
関連用語:[[実行ファイル圧縮>プログラミング用語#exe_comp-ja]]

//{{追加お願いします。}}

**参考リンク [#la6d4373]
:[[AutoHotkey - Free Mouse and Keyboard Macro Program with Hotkeys and AutoText:http://www.autohotkey.com/]]|
公式サイト
:[[AutoHotkeyを流行らせるページ:http://lukewarm.s101.xrea.com/]]((検索プラグインを作った方を発見:[[「AutoHotkeyを流行らせるページ」の検索プラグインを作った - blooo:http://d.hatena.ne.jp/blooo/20090826/1250798532]]))|
日本に於ける総本山

***スクリプト [#v67b1dcd]
:[[AutoHotkey Script Showcase:http://www.autohotkey.com/docs/scripts/]]|
スクリプトサンプル。

:[[AutoHotkey wiki - Category:Scripts - AutoHotkey:http://www.autohotkey.com/wiki/index.php?title=Category:Scripts]] , [[Script Listing - AutoHotkey:http://www.autohotkey.com/wiki/index.php?title=Script_Listing]]|
目当てのスクリプト(の記事)を見つけるのに[[Forum:http://www.autohotkey.com/forum/]]から検索((検索用スクリプトの公開もされていたりします:[[Quick Search for Autohotkey:http://www.autohotkey.com/forum/viewtopic.php?p=196070#196070]]))((Firefox用検索プラグイン - english-forum,german-forum:[[FF2+ Search Plugin:http://www.autohotkey.net/~DerRaphael/ff3/index_en.html]]))して探すのが大変なら、先ずこのページにあるリンクからあたってみましょう。 - 中には古い記事もあるので記事の日付け、内容に注意。

:[[AutoHotkeyを流行らせるページ → My Scripts:http://lukewarm.s101.xrea.com/myscripts/index.html]]|
AutoHotkeyを流行らせるページの管理人さんが作成したスクリプト、ライブラリ各種。

:[[Tutorials - AutoHotkey:http://www.autohotkey.com/wiki/index.php?title=Tutorials]]|
初心者~中級者~上級者それぞれのレベルの各種チュートリアルへのリンク

:[[Tutorial for Newbies:http://www.autohotkey.com/forum/topic29204.html&sid=ebcf07a6f9ca4431d43648e931135b73]]|
初心者 &amp; ニューカマー向けの有用なチュートリアル
//本当は翻訳して載せるのがベストだよな…  ココじゃなくて。
//↑引用だけはしておいたよ

:[[AHK Libraries - AutoHotkey:http://www.autohotkey.com/wiki/index.php?title=AHK_Libraries]]|
ライブラリについては [[関数ライブラリスクリプト - AutoHotkeyを流行らせるページ:http://lukewarm.s101.xrea.com/Function.html#library]] を参照されたし。
//"AHK Libraries" のページが出来たのを機に"Class library (OOP)","Jimulation"も"スクリプト"の項へ移動
::[[Class library:http://www.autohotkey.net/~animeaime/ClassLibrary/]]|
>
 The Class library is a toolset to add OOP (Object-Oriented Programming) to AHK
[[Class library (OOP) - Help Thread:http://www.autohotkey.com/forum/topic42244.html]] 、 [[Class library (OOP) - Wish list / Bug reports thread:http://www.autohotkey.com/forum/topic40293.html]] 、 [[Introduction To OOP:http://www.autohotkey.net/~animeaime/ClassLibrary/docs/IntroToOOP.htm]] / [[OOP - プログラミングスレまとめ in VIP>OOP]]
//紹介しないのは勿体無いから紹介だけでも…いいよね?

//:[[Jimulation - or another aproach to a oop system for ahk:http://www.autohotkey.com/forum/topic45462.html]]|
//>
// The library Jimulation.ahk is the only file needed to use it.


***DllCall [#yc223dfb]
:[[API Wrappers - AutoHotkey wiki:http://www.autohotkey.com/wiki/index.php?title=API_Wrappers]]|
WinAPI ((Windowsが提供するさまざまな機能:[[Windows API - Wikipedia:http://ja.wikipedia.org/wiki/Windows_API]]))にアクセス出来ます。

:[[Windows Data Types lookup tool - Autohotkey forums:http://www.autohotkey.com/forum/topic12036.html]]|
WinAPI関連:補助スクリプト

:[[Crazy Scripting : A handy tool to lookup Win32 Constants - Autohotkey forums:http://www.autohotkey.com/forum/topic19766.html]]|
WinAPI関連:補助スクリプト "W32C_R01.CSV is a listing of 11836 Constants"

:[[Easy WinAPI - WinAPI Parser, DllCall with single hotkey - Autohotkey forums:http://www.autohotkey.com/forum/topic33464.html]]|
WinAPI関連:補助スクリプト

:[[StructParser (for C/C++ structs) - Autohotkey forums:http://www.autohotkey.com/forum/topic27644.html]]|
補助スクリプト: →[[Known Issues - Autohotkey forums:http://www.autohotkey.com/forum/post-172883.html&sid=9497a16de8656b80cdf59bb961cb2ec1#172883]]

:[[Crazy Scripting : WinAPI Listing:http://www.autohotkey.com/forum/topic39649.html]]|
WinAPI関連:補助スクリプト - リストからWinAPI関数を検索、MSDNライブラリの該当ページをブラウザで表示。

:[[Windows API Utilities:http://www.autohotkey.com/forum/topic49016.html]]|
補助スクリプト - 上記の複数の補助スクリプトを取り込む形の発展形?スクリプト
>
 A program to look up an enumeration constant, 
 data type or structure defined in the Windows API, 
 and to parse a structure, which is useful for DllCall in AHK. 

:[[win32help.ahk (Win32 API 用ラッパ作成ヘルパスクリプト):http://yak.myhome.cx/junks/#ahk]]|
DllCall() のラッパ、構造体操作ラッパ、加えて定数定義を作成するためのヘルパスクリプト - Requires: C++ コンパイラ、 Win32 API のヘッダ

:[[OpenGL DllCalls - Autohotkey forums:http://www.autohotkey.com/forum/topic31078.html]]|
OpenGL(([[OpenGL - Wikipedia:http://ja.wikipedia.org/wiki/OpenGL]])) in AHK. 関連:[[Zippos OpenGL - AHK 3D-Engine. - Autohotkey forums(独語):http://de.autohotkey.com/forum/topic3977.html]]→[[操作解説(英語)-Keys - Autohotkey forums:http://www.autohotkey.com/forum/post-233842.html&sid=9d3510f63696c83c85be97d91f0a2253#233842]]

:[[GDI+ standard library 1.26 by tic:http://www.autohotkey.com/forum/topic32238.html]]|
GDI+ (([[Graphics Device Interface - Wikipedia:http://ja.wikipedia.org/wiki/Graphics_Device_Interface#GDI.2B]])) :サンプル - [[ [examples+minituts] The GDI+ Examplecodes thread:http://www.autohotkey.com/forum/topic37859.html]]

//standard library (StdLib) どこまで紹介するのがいいだろう?
//もう少し整備されてからの方がいいのか? - http://www.autohotkey.com/forum/topic22214.html
//こっちも動きがあるようだ - http://www.autohotkey.com/forum/topic22548.html

//AHKが方向性の一つとして、例えばHSPとかなでしこの様な方向へも伸びてくとしたら、
//ライブラリの充実とそれを紹介する機会をもっと設ける必要を感じるんだよなー…
//OOP(http://www.autohotkey.com/forum/topic40293.html)とかも出てきてるしなー
//日本語のドキュメントもこれまで以上に必要だよなー…… 
//>日本語のドキュメント ←で、誰がやるん?
//そこはやっぱり『流行らせるページ』の方で…
//『流行らせるページ』の方で、って管理人さんに押し付ける訳にはいかないし、スレを建てるの?
//BBSのような形式よりはライブラリのまとめサイト(wiki)見たいなのを新設するとかの方が良いような気もするかなー
//日本のユーザーは『HSPとかなでしこの様な』方向性は望んでないんじゃねーの?
//『ライブラリのまとめサイト(wiki)見たいなの』はいいかもしれんけど
//方向性はともかく、OOP (Class library)なんかを中心にするとかして
//文字通り標準のライブラリとして纏めてくれないかなー。
// http://www.autohotkey.net/~animeaime/ClassLibrary/
// - もう少し成り行き見てみるかな。
//あ、まとめサイト <del>作っても無駄にはならないだろうし、やりたい人ドゾ。</del> anyone?
//↑『ライブラリのまとめサイト(wiki)見たいなの』向けのアイデア。
//共通のフォーマットとしてahkml http://www.autohotkey.net/~Tuncay/ahkcollec/ahkml10-doc.txt なんか利用できると思うんだけどな。
//AutoHotkey Script Collection http://www.autohotkey.net/~Tuncay/ahkcollec/ahkcollec.xml
//拡張して 入力補完用、ツールチップ用のファイルも提供できるように、とかおもしろいと思うんだけどなー。
//でも、ahkmlそのものが殆んど認知されてないみたいなんだよなー ……。
//っていうか プログラミングスレまとめ で収まる話じゃないよなー。
//誰も手を挙げないならソフ板か流行らせるページの方へ投げたほうが良いと思うが。ていうか投げちゃうゾ?

//Function Listing - AutoHotkey - http://www.autohotkey.com/wiki/index.php?title=Function_Listing
// ↑ここのリストに肉付けしていく感じで纏めるのがよさげ?(ライブラリ[StdLib])
//Script Listing - Functions - http://www.autohotkey.com/wiki/index.php?title=Script_Listing#Functions
// ↑ここからも幾つかは[StdLib]としてリストアップした方がいいのか?
//AHK Class Library - http://trac.singularityshift.com/projects/ahkclasses
// ↑同じ様な事考えてる人?

***COM [#udcd699d]
:[[COM Wrappers - AutoHotkey wiki:http://www.autohotkey.com/wiki/index.php?title=COM_Wrappers]]|
いくつかCOMラッパーの提供もされています。

:[[COM Standard Library - Autohotkey forums:http://www.autohotkey.com/forum/topic22923.html]]|
>
 DOWNLOAD COM.zip or COM_L.zip (for AutoHotkey_L) or COM_U.zip (for AutoHotkeyU). 
>
[[Nov 26, 2009 1:39 am:http://www.autohotkey.com/forum/post-313585.html&sid=f11bb7bbcbc1e1f13b7440c392296b8d#313585]] - Sean さん曰く:
>
 COM_L/COM_U are updated to chain COM_Term as part of the destruction routines. 
 I was rather reluctant to do it inside the COM Library, however,
 there was no other choice and seemed safe to do, so added it.
 But, when encountering a crash of AHK during the termination of a script using COM Library,
 please report here.
//
//[[Thu Oct 08, 2009:http://www.autohotkey.com/forum/post-301756.html&sid=4800c25e258aac825b42c092ea3de157#301756]] - Sean さん曰く:
//>
// Two different versions of COM.ahk are now separated 
// into COM.zip (for AutoHotkey.exe) and COM_L.zip (for AutoHotkey_L.exe). 
// The examples in the previous post have been updated accordingly. 
// Now no need of explicit calls for initialization functions like COM_Init etc,
 and COM_Wrap/COM_Unwrap, with the new Object version.
<
→ [[関数ライブラリスクリプト:http://lukewarm.s101.xrea.com/Function.html#library]]、[[#Include:http://lukewarm.s101.xrea.com/commands/_Include.html]] - [[AutoHotkeyを流行らせるページ:http://lukewarm.s101.xrea.com/]]
//::[[COM_L.ahk:http://www.autohotkey.com/forum/post-301488.html&sid=728162e7cf06c6b91cdb6163982ec635#301488]]|
//>
// New AutoHotkey_L is now pretty stable with Object recently introduced, 
// new COM_L.ahk is added into COM.zip, inspired COMo, 
// with updated COM_Invoke/COM_Invoke_/COM_ConnectObject 
// to be usable both with the original syntax and the new dot syntax based on Object.

:[[Embed an Internet Explorer control in your AHK Gui via COM - Autohotkey forums:http://www.autohotkey.com/forum/topic19225.html]]|
"This is a standard library for IE/WebBrowser controls."~
関連:[[IE and Gui Browser Com Tutorial - Autohotkey forums:http://www.autohotkey.com/forum/topic34972.html]]

:[[Basic Webpage Controls with JavaScript / COM - Tutorial:http://www.autohotkey.com/forum/topic51020.html]]|
>
 This tutorial requires the COM Standard Library.
>
 The purpose of this tutorial is to teach the intermediate AHK user
 how to start using the COM Standard Library to control webpages. 
 My goal is to provide methods for controlling webpages,
 similar to how the AHK Control Commands can control Windows Applications.
 This tutorial is going to be high level,
 but will provide links to those who want to dig deeper into these concepts.
 You don't need to have much programming experience,
 but I will assume you feel comfortable writing and executing AHK scripts.

:[[Windows Scripting for Autohotkey - official homepage:http://www.autohotkey.net/~easycom/]]|
VBScript,JScriptの組み込み - "Embed VBScript or JScript directly in your Autohotkey programs." : 
[[Embedded Windows Scripting (VBScript & JScript) and COM - official thread in the Autohotkey forums:http://www.autohotkey.com/forum/topic21674.html]]

:[[AutoHotkeyを流行らせるページ → My Scripts → ActiveX:http://lukewarm.s101.xrea.com/myscripts/index.html]]|
WSH等で使われるActiveXObjectを扱えるようにする

***ダメ文字問題対策 [#w52e9b62]
-[[新・なまず日記(2006-01-11) - AutoHotkeyのダメ文字問題対策:http://www.tierra.ne.jp/~aki/diary/?date=20060111#p01]]
-[[(AutoHotkey)(IMEの制御をする 編) - もらかなです。:http://d.hatena.ne.jp/morakana/20080213/1202876561]]
-[[クリップボードを使わないで全角文字を貼付ける - eamatの日記:http://d.hatena.ne.jp/eamat/20050921/p1]]
-[[AutoHotkeyでマルチバイト(全角)文字を文字化けなしで出力する関数 - ナレッジデータベース モバイル:http://it.kndb.jp/m/entry/id/1188]]

:[[AutoHotkey駄目文字微対策版:http://yak.myhome.cx/junks/#ahk.cp932]]|
//%%1.0.47.06ベースにされたようです(08年12月25日現在)。%%~
//1.0.48.02ベース(タイムスタンプ:2009年4月21日)~
1.0.48.03ベース(タイムスタンプ:2009年8月9日)
>
 ファイル名関連部分(のみ)について駄目文字対策を施した(つもりの)ものです。
 文字列処理(正規表現も含む)には、依然として駄目文字等の Shift JIS を扱う際の問題が含まれています。

:Unicode関係参考リンク|

::[[物置 &gt; あふすくりぷた - encutil.ahk:http://yak3.myhome.cx:8080/junks/index.html#afx.afxscript]]|
[[AutoHotkey スレッド part8:http://pc12.2ch.net/test/read.cgi/software/1243005818/487]] より~
>
 「あふすくりぷた」の中にある encutil.ahk に SJIS、UTF-8、UTF-16 間の相互変換関数

::[[Read and Write Unicode:http://www.autohotkey.com/forum/topic11178.html]] |

::[[FileAppend Unicode text:http://www.autohotkey.com/forum/topic10862.html]] |

::[[Reading € from a file:http://www.autohotkey.com/forum/topic11167.html]] |

::[[AutoHotkey_L (Lexikos' custom build):http://www.autohotkey.com/forum/post-259543.html&sid=78fe86696f60a3e23cfd6997ec716777#259543]] |Revision 25 - March 30, 2009 - Support for Send {U+xxxx}. Character codes can be looked up using Windows' Character Map.

::[[Easy Unicode functions:http://www.autohotkey.com/forum/topic44766.html]]|
>
 I "discovered" a really easy way to send (paste) Unicode characters from your script.
<
>
 you must save this script as UTF-8 to make it work.

:::[[Easy Unicode functions:http://www.autohotkey.com/forum/post-272379.html#272379]] for AutoHotkey_L (Lexikos' build)|
this script requires AutoHotkey_L

***デバッグ あれこれ [#c2514e63]
:[[AutoHotkeyを流行らせるページ → スクリプト → スクリプトのデバッグ:http://lukewarm.s101.xrea.com/Scripts.html]]|
スクリプトが期待通りに動作しているかを確認するには

:[[AutoHotkeyを流行らせるページ → リファレンス → OutputDebug:http://lukewarm.s101.xrea.com/commands/OutputDebug.html]]|
デバッガ([[DebugView>AutoHotKey#DebugView]]など)に文字列を出力

:[[110.22 Ahk script Debugger 1.1.5b (line-by-line capable):http://www.autohotkey.com/forum/topic7302.html]]|
"An interactive AHk debugger"

:[[Debugging - Autohotkey forums:http://www.autohotkey.com/forum/topic23678.html]]|
Debug helper スクリプト など

:[[Debug() [Func] - Autohotkey forums:http://www.autohotkey.com/forum/topic31416.html]]|
>
 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:http://www.autohotkey.com/forum/topic24397.html]]|
RunDebugView.ahk - [[DebugView>AutoHotKey#DebugView]] を利用。

:[[Gui, Show bug - Autohotkey forums:http://www.autohotkey.com/forum/topic17316.html]]|
Trace.ahk - [[DebugView>AutoHotKey#DebugView]] を利用。

//:[[DllCallDebugger Proof of Concept:http://www.autohotkey.com/forum/topic36665.html]]|
//Requires: LowLevel.ahk([[LowLevel & dynamic code:http://www.autohotkey.com/forum/topic26300.html]])
// タイトルが変わっていた↑ and バージョンアップしていたので置き換え↓
:[[DebugBIF - debug built-in functions (was DllCallDebugger):http://www.autohotkey.com/forum/topic36665.html]] - for AutoHotkey v1.0.48|
appropriate version of [[LowLevel:http://www.autohotkey.com/forum/topic26300.html]] are required.

**Tools [#c138c78c]

:&aname(DebugView){DebugView};([[DebugView for Windows - © Microsoft Corporation.:http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx]])|
デバッグトレースを表示
::使い方 - 参考:|[[差をつけるデバッグ術! ~ 知られざるログ出力 - プログラミング徹底解説:http://keicode.com/windows/win15.php]]

:[[Dependency Walker (depends.exe) Home Page:http://www.dependencywalker.com/]]|
最新版:2.2.6000が入手できる~
[[Dependency Walker 日本語化パッチ+α - G-PROJECT:http://www.gprj.net/wiki/index.php?title=Dependency_Walker_%E6%97%A5%E6%9C%AC%E8%AA%9E%E5%8C%96%E3%83%91%E3%83%83%E3%83%81%2B%CE%B1]]~
[[Dependency Walkerの文字化け対策 - G-PROJECT:http://www.gprj.net/wiki/index.php?title=Dependency_Walker%E3%81%AE%E6%96%87%E5%AD%97%E5%8C%96%E3%81%91%E5%AF%BE%E7%AD%96]]~
[[[SMS] Dependency Walker for Win32 (Depends.exe) について:http://support.microsoft.com/kb/198707/ja]]

:[[DLL Export Viewer:http://www.nirsoft.net/utils/dll_export_viewer.html]]|
システム内のdll/指定したdllの関数をスキャン

:[[WinAPIOverride32:http://jacquelin.potier.free.fr/winapioverride32/index.php]]|
WinAPI、COM、.NETのモニタリング(and フッキング)ツール -  [[COM Auto Monitoring:http://jacquelin.potier.free.fr/winapioverride32/doc/com_tools.htm]](see also [[COM Options:http://jacquelin.potier.free.fr/winapioverride32/doc/com_options.htm]]) , [[ .NET monitoring:http://jacquelin.potier.free.fr/winapioverride32/doc/net.htm]] / 
[[Tutorial Videos:http://jacquelin.potier.free.fr/winapioverride32/videos.php]]
//ついでだからWinAPIOverride32も追加
::[[Dll Export Finder:http://jacquelin.potier.free.fr/dllexportfinder/]]|
指定したディレクトリのdllの関数をスキャン

:[[ActiveVB - ApiViewer (en):http://www.activevb.de/rubriken/apiviewer/index-apiviewereng.html]]|
WinAPIビューワー

:[[COMView:http://www.japheth.de/COMView.html]]|
PSDK付属のOleView.Exeの代替として使用できるツール
:[[MiTeC OLE/COM Object Explorer:http://www.mitec.cz/Data/XML/data_downloads.xml]]|
PSDK付属のOleView.Exeの代替として使用できるツール

:[[SPY for Internet Explorer:http://darksky.biz/index.php/Software/SPY%20for%20Internet%20Explorer]]|
実行中のInternet Explorerで発生するイベントの監視(WebBrowser control)

:[[IE HTML Element Spy:http://www.autohotkey.com/forum/topic48470.html]]|
>
 It retrieves the info of a DOM element under the cursor when the cursor is
 hovering over Internet Explorer_Server.
>
REQUIRE [[COM Standard Library:http://www.autohotkey.com/forum/topic22923.html]]. 
<

//::[[ahk web recorder (iWebBrowser2 Learner):http://www.autohotkey.com/forum/post-294716.html&sid=bf892efbe8d7b425f24cc8f666bea2c5#294716]]|
//マウス下のIEからiWebBrowser2関係の情報取得

:[[IE Web Recorder Developers Needed:http://www.autohotkey.com/forum/topic51270.html&sid=9f2858f5d4264741f02bc003fd9b6a09]]|
>
 # iWebBrowser2 Learner - 
    This tool is under major development effort due to recent interest by 
    serious members of the forum. 
    This is intended to eventually turn into a web simple script writer
    much like the packaged script recorder for other applications
 # iWeb Functions - 
    Very stable well tested library the relieves
    the user of intimate understanding DOM, COM, 
    or JavaScript to control a web site 

:Winspector - Ultimate Windows Message Spy|
::Download|
[[Winspector install.:http://www.autohotkey.com/forum/post-312239.html#312239]] , [[(web.archive.org) - Winspector:http://web.archive.org/web/*/http://www.windows-spy.com/download/]]
::Tutorial|
[[[pictorial] Find WM_COMMAND parameter with Winspector:http://www.autohotkey.com/forum/topic40112.html]]
::[[An Advanced Technique.:http://www.autohotkey.com/forum/topic126.html]]|
>
 Tutorial on posting messages to Windows
<
::see also [[PostMessage/SendMessage Tutorial:http://lukewarm.s101.xrea.com/misc/SendMessage.html]]|

:[[WinInfo Menu:http://www.autohotkey.com/forum/topic8617.html]]|
>
 ~ show the information about a window/control/Pixel in a menu form.
 It is designed to be an alternative for window spy. 
<
:[[AHK Window Info 1.7:http://www.autohotkey.com/forum/topic8976.html]]|
>
 This script will reveal information on windows, controls, etc. 

**mini info [#v3454dba]
:AutoHotkey更新情報|
[[AutoHotkey Changes and New Features:http://www.autohotkey.com/changelog/]] 、 
[[AutoHotkeyを流行らせるページ → バージョンアップしたら上げるスレ:http://lukewarm.s101.xrea.com/bbs/#10]]

:&aname(Compile_AHK2){Compile_AHK II};([[Compile_AHK II - for those who compile! - Autohotkey forums:http://www.autohotkey.com/forum/topic22975.html]])|
Update of 2008-11-05 以降、"No UPX"オプション(GUI)が付いています。(コンパイラそのものは公式サイトで配布されているものに標準で付いて来ます) - [[Viruses found in executable after compile:http://www.autohotkey.com/forum/topic30084.html]] , [[Tutorial: How to compile .AHK files and include your own ico:http://www.autohotkey.com/forum/topic41058.html]]

:chm版リファレンス - [[スクリプト投稿スレ &gt; 127:http://lukewarm.s101.xrea.com/test/read.cgi/bbs/1092315194/127]]|
『AutoHotkeyを流行らせるページ』のHTML HELP版、 v1.0.47.00 対応。

:[[SciTE4AutoHotkey v2:http://www.autohotkey.net/~fincs/SciTE4AutoHotkey_2/web/]] stable| [[SciTE4AutoHotkey v2 - New SciTE4AHK version in the making:http://www.autohotkey.com/forum/topic40241.html]] , [[SciTE4AutoHotkey v2 Stable - Released.:http://www.autohotkey.com/forum/topic41503.html]]

::full portable app|
portableな環境で使えるようにして欲しい(←意訳) - http://www.autohotkey.com/forum/post-280902.html&sid=87b274429e4454ec26ce0d5151fa405b#280902~
save.recent、save.sessionの値を 0 に(無効に)する案 - http://www.autohotkey.com/forum/post-280984.html&sid=87b274429e4454ec26ce0d5151fa405b#280984~
別の方法 - 応急処置(SciTE4AutoHotkey2のバージョンが上がれば必要なくなるかもしれない):~
 ;-- SciTELaunch.exe キック用 ------------
 ; SciTELaunch.exeと同じディレクトリに置く
 EnvSet, SciTE_HOME, %A_ScriptDir% 
 Run, %A_ScriptDir%\SciTELaunch.exe
 Return
 ; ---------------------------------------

::"SciTE4AutoHotkey v2" メニュー日本語化パック|
[[AutoHotokeyを流行らせるアップローダ:http://lukewarm.s101.xrea.com/up/index.php]] - に UP しました。 - 114.zip
//2chのスレに報告できない(書き込めない)…
[[AutoHotokeyを流行らせるアップローダ:http://lukewarm.s101.xrea.com/up/index.php]] - に UP しました。 - 117.zip (フォント指定の項目修正してみました)

//::[[AutoHotkey_L (Lexikos' custom build) - ''"pre-release"'' DBGp client functions written in AutoHotkey:http://www.autohotkey.com/forum/post-256592.html#256592]] - "Hopefully we will see interactive debugging in SciTE4AutoHotkey in the not-too-distant future."|
//関連:[[AutoHotkey_L - Debugging Features:http://www.autohotkey.net/~Lexikos/AutoHotkey_L/docs/Debugging_Features.htm]] 、
//[[InteractiveDebugging.avi:http://www.autohotkey.com/forum/post-257669.html#257669]] - 基本的なデバッグの様子を収めたスクリーンキャスト。
//まだ "pre-release" だけど、ここは "mini info" の枠だからいいよね?

:[[ironahk - Google Code:http://code.google.com/p/ironahk/]]|
クロスプラットホーム向けに開発が進められているAutoHotkeyからのフォーク。~
Forum内のスレッド:[[IronAHK - .NET port of AutoHotkey for Windows, Linux, Mac...:http://www.autohotkey.com/forum/topic34421.html]]
::[[scite-4-ironahk - Google Code:http://code.google.com/p/scite-4-ironahk/]]|
IronAHK 仕様の SciTE

:[[AutoHotkey.dll:http://www.autohotkey.com/forum/topic43049.html]]|
binaries - [[Autohotkey.dll:http://www.autohotkey.net/~tinku99/]]~
source - [[tinku99's ahkdll at master - GitHub:http://github.com/tinku99/ahkdll/tree/master]]~
>
 Features:
 * embed autohotkey in another program
 * dynamically add #include type files to a running script
 addFile(file). Functions and labels should work fine.
 #Directives and Exit Routines may not work as expected.
 * multithreading

:[[Rosetta Code - Category:AutoHotkey:http://rosettacode.org/wiki/Category:AutoHotkey]]|
>
 Rosetta Code is a programming chrestomathy site.
 The idea is to present solutions to the same task in as many different languages as possible,
 to demonstrate how languages are similar and different,
 and to aid a person with a grounding in one language in learning another.
面白い所では [[Bogosort:http://rosettacode.org/wiki/Bogosort#AutoHotkey]] , [[Bubble Sort:http://rosettacode.org/wiki/Bubble_Sort#AutoHotkey]] ,[[FizzBuzz:http://rosettacode.org/wiki/FizzBuzz#AutoHotkey]] なども掲載されている。 / [[Challenge: translate rosettacode - Was promoting autohotkey:http://www.autohotkey.com/forum/topic44657.html]]

:[[Sparrow: AHK WebServer w/ AHK in HTML support (sources incl):http://www.autohotkey.com/forum/topic36047.html]]|
>
 Sparrow is a webserver completly written in AHK,
 which nativly supports AHK scrips being embedded in HTML. 
 So called HKML files (pronounce H-Key-ML). The results are sent back to requested browser.

:[[UNICODE version AutoHotkey (needs your tests and helps):http://www.autohotkey.com/forum/topic50485.html]]|
>
 I just translated the source codes of AutoHotkey to support Unicode, and it can be built now.
 However, it might be considered to be problematic and need your helps. 
"''needs your tests and helps''"


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