ダウンロード / インストール / create a script file

Windows PC に関するメモランダム

カテゴリー: ホットキー  閲覧数:603 配信日:2022-04-19 13:24


ダウンロード


AutoHotkeyの「Download Current Version」ボタンをクリックします。



インストール


1.「AutoHotkey_1.1.33.10_setup.exe」をクリックします。

2.「Express」ボタンをクリックします。
デフォルトでは下記にインストールされます。
C:\Program Files\AutoHotkey

create a script file


1.「Welcome」画面内にある「create a script file」リンクをクリックします。
Welcome...

Getting Started
Before AutoHotkey can do anything, you need to write a script telling it what to do.
To learn how, read the tutorial or dive straight in.

Basically: create a script file → add some hotkeys → run the script file.

You can also get help or find many useful scripts on our friendly discussion forum ¬.

Why am I seeing this?
You ran AutoHotkey without telling it which script file to run, and it couldn't find a script in either of the usual places.

b. How to create a script

Once you have AutoHotkey installed, you will probably want it to do stuff. AutoHotkey is not magic, we all wish it was, but it is not. So we will need to tell it what to do. This process is called "Scripting".

Text instructions:
1.Right-Click on your desktop.
2.Find "New" in the menu.
3.Click "AutoHotkey Script" inside the "New" menu.
4.Give the script a new name. It must end with a .ahk extension. For example: MyScript.ahk
5.Find the newly created file on your desktop and right-click it.
6.Click "Edit Script".
7.A window should have popped up, probably Notepad. If so, SUCCESS!
So now that you have created a script, we need to add stuff into the file. For a list of all built-in commands, function and variables, see section 5.

Here is a very basic script containing a hotkey which types text using the Send command when the hotkey is pressed:
^j::
Send, My First Script
return
S↓


We will get more in-depth later on. Until then, here's an explanation of the above code:
◦The first line: ^j:: is the hotkey. ^ means Ctrl, j is the letter J. Anything to the left of :: are the keys you need to press.
◦The second line: Send, My First Script is how you send keystrokes. Send is the command, anything after the comma (,) will be typed.
◦The third line: return. This will become your best friend. It literally stops code from going any further, to the lines below. This will prevent many issues when you start having a lot of stuff in your scripts.

8.Save the File.
9.Double-click the file/icon in the desktop to run it. Open notepad or (anything you can type in) and press Ctrl and J.
10.Hip Hip Hooray! Your first script is done. Go get some reward snacks then return to reading the rest of this tutorial.

For a video instruction, watch Install and Hello World ¬ on YouTube.

3.スクリプトを作成します。
今回は「ctrlv.ahk」ファイル」を作成後、デスクトップへ配置しました。

週間人気ページランキング / 8-23 → 8-29
順位 ページタイトル抜粋 アクセス数
1 Windows 0 10
2 「Tablacus Explorer」でアクティブタブに背景色を付けるためには、「タブをデザイン」アドオンをインストールします。 | Tablacus Explorer(ソフトウェア) 6
3 ネットワーク通信でエラーが発生しました 5
3 「Antimalware Service Executable」のCPU使用率が一時的に高くなるのは、本当に暴走が原因なの? 5
4 No7.HD-LBV3.0TU3/N の最後 | ハードディスクトラブル 2016年(ハードウェア) 4
4 大量のパワポ資料を無料で閲覧確認するためには、「Open Office」を使用する | ソフトウェア 4
4 3 / HD-ES500U2はSATA接続 / 分解後、UD-505SAで直接接続してデータ確認に成功 | 外付けハードディスク(ハードウェア) 4
4 FileZillaでディレクトリ内容が表示されない理由は、「ディレクトリリストのフィルタリング」の「Source control directories」にチェックを入れているから | FileZilla(ソフトウェア) 4
4 Windows7のフォルダ構成思想 | Windows7(Windows) 4
4 回線速度測定 | ネットワーク 4
5 FreeFileSync | ソフトウェア 3
5 バッチファイル | Windows 3
5 VAIO の液晶ディスプレイが、しばらく触っていないと暗くなり、操作できなくなる | ディスプレイ(ハードウェア) 3
5 不定期でインターネットへ接続できなくなる。「192.168.11.1」へも接続できなくなる | ネットワーク 3
5 動画から音声だけを取得するためには「VLC media player」を使用。音声から動画形式のファイルを作成するためにも「VLC media player」を使用 | VLC media player(ソフトウェア) 3
5 HotkeyP | ソフトウェア 3
5 デフォルト設定 / 以前の情報 3
5 「Explzh」でコンテキストメニューの特定項目だけを非表示へ変更するためには、オプション画面右上の「詳細設定[管理者](L)」ボタンをクリックします。 | Explzh for Windows(ソフトウェア) 3
5 FreeFileSync 試行錯誤履歴 | FreeFileSync(ソフトウェア) 3
5 「右に回転」削除ではなく「右に回転」非表示を採用した理由 / 「右に回転 左に回転」を非表示にするためには? /「右に回転 左に回転」非表示操作手順 3
2026/8/30 5:05 更新
指定期間人気ページランキング / 2020-5-27 → 2026-8-29
順位 ページタイトル抜粋 アクセス数
1 MP3ファイルの「プロパティ」を変更できない | Windows 10(Windows) 24473
2 Windows 0 11601
3 ファイル名の一部(指定文字列)を削除するバッチファイル | バッチファイル(Windows) 10649
4 「接点復活剤」「接点復活スプレー」は、100円ショップで販売されていない | イヤホン(ハードウェア) 7303
5 タスクスケジューラ | Windows 10(Windows) 6480
6 「機能を構成しています 100%完了 コンピューターの電源を切らないでください」の画面が表示され続ける場合でも、1時間ぐらいは待った方が良いかも | 起動トラブル 2019年(Windows) 6108
7 コマンドプロンプトでchkdsk /B | ハードディスクトラブル(ハードウェア) 5974
8 3.解凍先の指定。デフォルト設定ではデスクトップに解凍 4762
9 Audacity で再生ボタンを押しても音が鳴らない時は、再生レべルスライダーを右にドラッグして「再生レべル:100%」にします。 | Audacity(音) 4714
10 VLC media player で複数曲を「繰り返し連続再生する」ためには、プレイリスト全体をリピート再生指定する | VLC media player(ソフトウェア) 4249
11 コンピューターは正しく構成されていますが、デバイスまたはリソース (DNS サーバー) が応答していません。 | ネットワーク 3911
12 「コンテナー内のオブジェクトを列挙できませんでした」と表示される場合は、「Everyone にフルコントロール権限を与えて全て削除する」 | Windows 10(Windows) 3739
13 マウスの選択範囲がおかしくなった時、試してみた方が良いかもしれないこと | マウス(ハードウェア) 3641
14 「みまもり合図」に関する疑問。2019年 | みまもり合図(ソフトウェア) 3450
15 「タイムゾーン間で同期」にはチェックを入れない 2954
16 「みまもり合図」に関する疑問。2018年 | みまもり合図(ソフトウェア) 2744
17 これまで正常動作していた「CrystalDiskInfo」である日突然「対応ディスクが見つかりませんでした」と表示された場合は、アップデートしてみます。 | CrystalDiskInfo(ソフトウェア) 2705
18 Xboxを使用していない場合、XblGameSaveを動作させる必要は全くない 2673
19 「HD-LD4.0U3-BKA」と「HD-NRLD4.0U3-BA」と「HD-AD4U3」は同じ | 外付けハードディスク(ハードウェア) 2648
20 「★ページは機能していません」「★からデータが送信されませんでした。」 「ERR_EMPTY_RESPONSE」と表示されるようになったら、 Kasperskyを一旦停止してみる | ウイルス対策ソフト(Windows) 2591
2026/8/30 5:05 更新