Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| guides:v1_v2_cheat_sheet [2023-03-21 19:21] – [General] geek | 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 ===== | ||
| Line 8: | Line 39: | ||
| - Commands do not support a first comma anymore.\\ Change ❌'' | - Commands do not support a first comma anymore.\\ Change ❌'' | ||
| - All commands have been turned into functions. Command syntax is just a function call without parentheses (commands can be //any// function, even user defined ones). Consequently, | - All commands have been turned into functions. Command syntax is just a function call without parentheses (commands can be //any// function, even user defined ones). Consequently, | ||
| - | - Memory is reserved using '' | + | - Memory is reserved using '' |
| - Ampersand (''&'' | - Ampersand (''&'' | ||
| - Guis are fully object-oriented, | - Guis are fully object-oriented, | ||