I really need spacebar to work with XType or otherwise

Does anyone know how this works or otherwise when this will be available?

1 Like

KEY_SPACE for XType should be available in a few weeks months. Meanwhile you can use use XRun as workaround. With XRun you can call for example a VBS script with sendkeys " " (<- space!) inside. If you are on the Mac or Linux, you can use a Python script to do the same, see https://pypi.org/project/SendKeys/

Here is my Windows solution:

Here we use the XRun command to run a VBS script with sendkeys inside. The screencast also shows the difference between sending text strings like XTYPE | abc and explicitly simulating keyboard key presses with XTYPE | {KEY_D}{KEY_E}

vbs script:

' Start
Set WshShell = WScript.CreateObject("WScript.Shell")

' Type in Hello World
WshShell.SendKeys "Hello World!"
WshShell.SendKeys "{ENTER}"

test macro:

{
  "Name": "sendkeys with VBS",
  "CreationDate": "2020-2-24",
  "Commands": [
    {
      "Command": "open",
      "Target": "http://keyboardchecker.com/",
      "Value": ""
    },
    {
      "Command": "bringBrowserToForeground",
      "Target": "",
      "Value": ""
    },
    {
      "Command": "store",
      "Target": "slow",
      "Value": "!replayspeed"
    },
    {
      "Command": "XType",
      "Target": "ab c",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_D}${KEY_E}",
      "Value": ""
    },
    {
      "Command": "XRun",
      "Target": "c:\\test\\key.vbs",
      "Value": ""
    }
  ]
}
1 Like

Upcoming new keys for XType:

  • Home, End, Insert
  • Space bar
  • Mouse scroll up/down
  • Mac: Full Key_Cmd support again. Recent macOS updates broke this features partly, currently works only for some combinations.

Any other key missing? If so, please let us know!

1 Like