Keyboard macros: Difference between revisions

m
m (syntax highlighting fixup automation)
m (→‎{{header|Wren}}: Minor tidy)
 
Line 1,890:
<br>
As it's not currently possible for Wren-cli to access Xlib directly, we embed a Wren script in a C application to complete this task.
<syntaxhighlight lang="ecmascriptwren">/* keyboard_macrosKeyboard_macros.wren */
 
var GrabModeAsync = 1
Line 2,111:
WrenVM* vm = wrenNewVM(&config);
const char* module = "main";
const char* fileName = "keyboard_macrosKeyboard_macros.wren";
char *script = readFile(fileName);
WrenInterpretResult result = wrenInterpret(vm, module, script);
9,476

edits