書き方結構変わってて移行めんどくせぇな~っつって放置してたところ、神が神ツールを作ってくれていた。
GitHub - mmikeww/AHK-v2-script-converter: AHK v1 -> v2 script converter WORK IN PROGRESS
AutoHotKeyのv2をインストールしてQuickConvectorV2.ahkを起動、v1のスクリプトを突っ込むと一発でv2のスクリプトが生成され神を感じる。
; REMOVED: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode("Input") ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir(A_ScriptDir) ; Ensures a consistent starting directory.
GroupAdd("ExcludeGroup", "ahk_exe Overwatch.exe")
GroupAdd("ExcludeGroup", "ahk_exe BLUEPROTOCOL-Win64-Shipping.exe")
GroupAdd("ExcludeGroup", "ahk_exe RustClient.exe")
#HotIf !WinActive("ahk_group ExcludeGroup", )
F1::
{ ; V1toV2: Added bracket
Run("`"C:\Program Files (x86)\Steam\Steam.exe`"")
Return
} ; V1toV2: Added bracket in the end
#HotIf !WinActive(, )
F13::LControl
RWin::AppsKey
#HotIf WinActive("ahk_exe SpaceEngineers.exe", )
c::LControl
LControl::c
#HotIf