Basics
Basic rules:
Section titled “Basic rules:”- A single space separates the keys
- All keys as part of the same line get pressed and released simultaneously
- To write text, use the
STRING
function - Upper and lower case matters!
Example | Explanation |
---|---|
WINDOWS R | Press the Windows key and the R key simultaneously |
STRING Hello World | Write “Hello World” |
Example Script:
Section titled “Example Script:”REM Hello World Example ScriptDEFAULTDELAY 200DELAY 1000GUI rSTRING notepadENTERDELAY 1000STRING Hello World!
Line | Explanation |
---|---|
REM This is a comment | Comment something. |
DEFAULTDELAY 200 | Set the default delay between each line to 200 milliseconds. |
DELAY 1000 | Wait 1 seconds. |
GUI r | Press the Windows key and the R key simultaneously to open the run window. |
STRING notepad | Type “notepad”. |
ENTER | Press enter key to launch the Windows Notepad application. |
DELAY 1000 | Wait 1 seconds. |
STRING Hello World! | Type “Hello World!” into the newly opened notepad window. |