Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| guides:v1_v2_cheat_sheet [2024-07-24 05:24] – [General] vmech | guides:v1_v2_cheat_sheet [2025-01-13 19:37] (current) – [v1→2 Conversion Cheat Sheet] Add auto-converter widget to page geek | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== v1→2 Conversion Cheat Sheet ====== | ====== v1→2 Conversion Cheat Sheet ====== | ||
| + | |||
| + | ===== Converter ===== | ||
| + | |||
| + | Attempt to convert AHKv1 syntax to AHKv2 using the [[https:// | ||
| + | |||
| + | < | ||
| + | ; Requires AutoHotkey v1.1.26+, and the keyboard hook must be installed. | ||
| + | # | ||
| + | SendSuppressedKeyUp(key) { | ||
| + | DllCall(" | ||
| + | , " | ||
| + | , " | ||
| + | , " | ||
| + | , " | ||
| + | } | ||
| + | |||
| + | ; Disable Alt+key shortcuts for the IME. | ||
| + | ~LAlt:: | ||
| + | |||
| + | ; Test hotkey: | ||
| + | !CapsLock:: | ||
| + | |||
| + | ; Remap CapsLock to LCtrl in a way compatible with IME. | ||
| + | *CapsLock:: | ||
| + | Send {Blind}{LCtrl DownR} | ||
| + | SendSuppressedKeyUp(" | ||
| + | return | ||
| + | *CapsLock up:: | ||
| + | Send {Blind}{LCtrl Up} | ||
| + | return | ||
| + | </ | ||
| ===== General ===== | ===== General ===== | ||