!7 // fixes typing "|" module VNCFixer > DynPrintLogAndEnabled { S computerID; visualize { ret centerAndSouth(super.visualize(), withMargin(withLabel("Computer ID:", dm_fieldTextField('computerID)))); } start { dm_vmBus_onMessage('keyDown_raw, voidfunc(int rawCode, int modifiers) { if (enabled && isComputerID(computerID) && rawCode == 124 && modifiers == 128) { switch to q(); print("Sending the fix"); //robot_keyRelease(KeyEvent.VK_ALT_GRAPH); sleep(500); //dm_evalOnOtherMachine(computerID, "robot_pressAndRelease_vbar_englishLayout();"); dm_evalOnOtherMachine(computerID, "robot_keyRelease(KeyEvent.VK_ALT_GRAPH); robot_pressAndRelease_vbar_englishLayout();"); } }); } }