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

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

カテゴリー: ホットキー  閲覧数:481 配信日: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」ファイル」を作成後、デスクトップへ配置しました。

週間人気ページランキング / 11-3 → 11-9
順位 ページタイトル抜粋 アクセス数
1 クイックアクセスから複数のピン留めを一括で解除することはできません | Windows エクスプローラー(Windows) 37
2 「Audacity」で複数ファイルへ対する一括変換対応について | Audacity(音) 24
3 これまで正常動作していた「CrystalDiskInfo」である日突然「対応ディスクが見つかりませんでした」と表示された場合は、アップデートしてみます。 | CrystalDiskInfo(ソフトウェア) 23
4 コマンドプロンプトでchkdsk /B | ハードディスクトラブル(ハードウェア) 20
5 「Tablacus Explorer」でアクティブタブに背景色を付けるためには、「タブをデザイン」アドオンをインストールします。 | Tablacus Explorer(ソフトウェア) 17
6 Audacity で再生ボタンを押しても音が鳴らない時は、再生レべルスライダーを右にドラッグして「再生レべル:100%」にします。 | Audacity(音) 16
7 タスクスケジューラ | Windows 10(Windows) 14
8 Xboxを使用していない場合、XblGameSaveを動作させる必要は全くない 13
8 MP3ファイルの「プロパティ」を変更できない | Windows 10(Windows) 13
9 VLC media player で複数曲を「繰り返し連続再生する」ためには、プレイリスト全体をリピート再生指定する | VLC media player(ソフトウェア) 9
10 秀丸エディタでグレップ検索できない | 秀丸エディタ(ソフトウェア) 8
11 「みまもり合図」に関する疑問。2019年 | みまもり合図(ソフトウェア) 7
11 「VLC media player」で動画再生する際、なるべく高画質で観るための設定 | VLC media player(ソフトウェア) 7
12 「Chromeのユーザー1」を削除。ブックマークを復活させるためには、「Bookmarks.bak」を「Bookmarks」へリネーム後、「Profile 1」フォルダへ上書き配置 | Google Chrome(ソフトウェア) 6
12 「Windows 10」へインストールした「Audacity 3.2.4」で「.aacファイル」を読み込み、音量を大きく変換後、「.waveファイル」として出力する。 | Audacity(音) 6
12 Audacityで現在鳴っている音のサンプリング周波数を確認するためには、右下に表示されている「本来のサンプリング周波数」を見ます。 | Audacity(音) 6
13 FastCopyログに関するプライベートマニュアル | FastCopy(ソフトウェア) 5
13 Windows10 不定期でフリーズ発生トラブル(2019/6/7→6/8)。イベントビューアーで発生個所を特定しようとするも失敗に終わる | フリーズトラブル 2019年(Windows) 5
13 「コンテナー内のオブジェクトを列挙できませんでした」と表示される場合は、「Everyone にフルコントロール権限を与えて全て削除する」 | Windows 10(Windows) 5
13 フォルダウィンドウの「戻る」「進む」矢印ボタンが表示されなくなった | Windows7(Windows) 5
2025/11/10 1:01 更新
指定期間人気ページランキング / 2020-5-27 → 2025-11-9
順位 ページタイトル抜粋 アクセス数
1 MP3ファイルの「プロパティ」を変更できない | Windows 10(Windows) 24407
2 Windows 0 10858
3 ファイル名の一部(指定文字列)を削除するバッチファイル | バッチファイル(Windows) 10588
4 「接点復活剤」「接点復活スプレー」は、100円ショップで販売されていない | イヤホン(ハードウェア) 7278
5 タスクスケジューラ | Windows 10(Windows) 6244
6 「機能を構成しています 100%完了 コンピューターの電源を切らないでください」の画面が表示され続ける場合でも、1時間ぐらいは待った方が良いかも | 起動トラブル 2019年(Windows) 6087
7 コマンドプロンプトでchkdsk /B | ハードディスクトラブル(ハードウェア) 5858
8 解凍先の指定。デフォルト設定ではデスクトップに解凍 4732
9 Audacity で再生ボタンを押しても音が鳴らない時は、再生レべルスライダーを右にドラッグして「再生レべル:100%」にします。 | Audacity(音) 4571
10 VLC media player で複数曲を「繰り返し連続再生する」ためには、プレイリスト全体をリピート再生指定する | VLC media player(ソフトウェア) 4186
11 コンピューターは正しく構成されていますが、デバイスまたはリソース (DNS サーバー) が応答していません。 | ネットワーク 3891
12 「コンテナー内のオブジェクトを列挙できませんでした」と表示される場合は、「Everyone にフルコントロール権限を与えて全て削除する」 | Windows 10(Windows) 3702
13 マウスの選択範囲がおかしくなった時、試してみた方が良いかもしれないこと | マウス(ハードウェア) 3600
14 「みまもり合図」に関する疑問。2019年 | みまもり合図(ソフトウェア) 3333
15 「タイムゾーン間で同期」にはチェックを入れない 2844
16 「みまもり合図」に関する疑問。2018年 | みまもり合図(ソフトウェア) 2665
17 「HD-LD4.0U3-BKA」と「HD-NRLD4.0U3-BA」と「HD-AD4U3」は同じ | 外付けハードディスク(ハードウェア) 2620
18 「★ページは機能していません」「★からデータが送信されませんでした。」 「ERR_EMPTY_RESPONSE」と表示されるようになったら、 Kasperskyを一旦停止してみる | ウイルス対策ソフト(Windows) 2575
19 Xboxを使用していない場合、XblGameSaveを動作させる必要は全くない 2569
20 これまで正常動作していた「CrystalDiskInfo」である日突然「対応ディスクが見つかりませんでした」と表示された場合は、アップデートしてみます。 | CrystalDiskInfo(ソフトウェア) 2546
2025/11/10 1:01 更新