ウィンドウを指定する

付属ツールの Window Spy でウィンドウの実行ファイル名を調べる。#IfWinActive の第一引数に ahk_exe と実行ファイル名を指定する。ウィンドウの指定を解除するには引数なしの #IfWinActive を記述する。

#IfWinActive, ahk_exe chrome.exe
^,::Send !fs ; Open Chrome Settings
#IfWinActive

参考:

ウィンドウ/ソフトごとに動作を変える | 生焼けプログラマーの雑記帳

ウィンドウの指定方法 | so-zou.jp

ウィンドウ指定の方法 | AutoHotkey Wiki

WinTitle & Last Found Window | AutoHotkey [Official]

ウィンドウの位置/サイズを変更する

参考:

AutoHotkey で、Window 位置変更 | あんにんにっき。

WinMove | AutoHotkey Wiki

WinGetPos | AutoHotkey Wiki

Create a Hotkey to Resize Windows to a Specific Size with AutoHotkey | How-To Geek

ウィンドウを切り替える

参考:

Using AutoHotkey to switch Virtual Desktops in Windows 10 | Computer Hope

Custom shortcut to switch to next/previous desktop in Windows 10 – Super User

make Win+Tab act as Alt+Tab, but remap all other Win+ combinations as Ctrl+ – Stack Overflow

Sending L/RWin down and up commands to trigger Win-key combinations – AutoHotkey Community

ウィンドウのレイアウトを変更する

参考:

Window Positioning with AutoHotkey | Damir’s Corner

アクティブウィンドウを判別する

  • IfWinActive
  • IfWinNotActive
  • #IfWinActive

参考:

特定のアプリのみでホットキー適用 – Qiita

特定のアプリケーションのみの条件分岐について | とろテク

特定ウィンドウ上のみで任意キーで指定処理させる方法 | サイトアフィリ専業への道

IfWinActive / IfWinNotActive | AutoHotkey Wiki

#IfWinActive / #IfWinExist | AutoHotkey Wiki

#IfWinActive / #IfWinExist | AutoHotkeyJp

Autohotkey doesn’t check if statement condition – Stack Overflow

アクティブウィンドウを取得する

  • WinActive

参考:

WinActive() | AutoHotkey Wiki

ウィンドウが存在するかどうか判別する

  • #IfWinExist
  • IfWinExist
  • IfWinNotExist

参考:

特定のソフトを起動後に最小化する方法 | CG メソッド

#IfWinActive / #IfWinExist | AutoHotkey Wiki

#IfWinActive / #IfWinExist | AutoHotkeyJp

IfWinExist / IfWinNotExist | AutoHotkey Wiki

WinExist() / IfWinExist | AutoHotkey [Official]

script to monitor changes to a window title – Stack Overflow

ウィンドウのハンドルを取得する

  • WinExist

参考:

WinExist() | AutoHotkey Wiki

WinExist() / IfWinExist | AutoHotkey [Official]

ウィンドウの情報を取得する (WinGet)

サブコマンド
  • ID
  • IDLast
  • PID
  • ProcessName
  • ProcessPath
  • Count
  • List
  • ControlList
  • ControlListHWND
  • MinMax
  • Tranparent
  • TransColor
  • Syle
  • ExStyle

参考:

WinGet | AutoHotkey Wiki

WinGet | AutoHotkeyJp

WinGet | AutoHotkey [Official]

ウィンドウをアクティブ化する

参考:

WinActivate | AutoHotkey Wiki

WinShow | AutoHotkey Wiki

WinActivate | AutoHotkey [Official]

WinShow | AutoHotkey [Official]

WinWait

参考:

WinWait | AutoHotkey Wiki

WinWaitActive

参考:

WinWaitActive / WinWaitNotActive | AutoHotkey Wiki

Run script on active window change – AutoHotkey Community

SetTitleMatchMode

参考:

ウィンドウ指定の方法 | AutoHotkey Wiki

SetTitleMatchMode | AutoHotkey [Official]

SetTitleMatchMode RegEx applied only to directives – AutoHotkey Community

DetectHiddenWindows

参考:

DetectHiddenWindows | AutoHotkey [Official]

ControlGetText

参考:

ControlGetText | AutoHotkey Wiki

ControlGetText | AutoHotkey [Official]

cannot get text from a control – AutoHotkey Community

How can I use AutoHotkey to get the text in a control? – Stack Overflow

Can’t get ControlGet to work – Stack Overflow

Cannot ControlClick on hidden elements in nested child window – Stack Overflow

システムトレイからアプリを復帰させる

コード:

TrayIcon.ahk (tmplinshi) – GitHub Gist

参考:

activate taskbar / force re-focus of current application – AutoHotkey Community

How do I WinActivate program running in system tray? – AutoHotkey Community

Activate my app from the tray – Stack Overflow

Minimize / Restore Digsby – AutoHotkey Community

icons in the Windows notification area / system tray – reddit

システムトレイメニューに項目を追加する

参考:

Adding Actions to Windows System Tray Icon Menu | Jack’s AutoHotkey Blog

Window Spy

参考:

Window Spy を利用して調査を行う | AutoHotkey Wiki

AutoHotkey でコントロールの ClassNN を調べる | コンピュータの日々

Window Spy Shift + Alt + Tab doesn’t freeze text – AutoHotkey Community

リファレンス

ウィンドウ操作のコマンド | so-zou.jp

ウィンドウ | AutoHotkeyJp

ウィンドウ | AutoHotkey Wiki

Win List

コード:

winlist.ahk – 開いてるウィンドウをメニューで一覧してアクティブにする (10sr) – GitHub Gist

TrayIcon.ahk

コード:

TrayIcon.ahk (tmplinshi) – GitHub Gist

参考:

icons in the Windows notification area / system tray – reddit

Digsby.ahk

フォーラム:

Minimize / Restore Digsby – AutoHotkey Community

参考:

Activate my app from the tray – Stack Overflow

Post Click

フォーラム:

PostMessage Click – Useful hWnd Clicker | AutoHotkey Community

参考:

Can’t get ControlGet to work – Stack Overflow

WinSpy

公式サイト:

WinSpy | SourceForge.net

フォーラム:

WinSpy – Window Information Tool | AutoHotkey Community

SimpleSpy

動画:

Update to SimpleSpy – A Great Tool for Examining Older Programs

入手:

SimpleSpy | the-Automator

参考:

Cannot ControlClick on hidden elements in nested child window – Stack Overflow

記事をシェアする:
タグ:

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

Protected by reCAPTCHA