example.toml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Example Key-bind
  2. # When 'h' is pressed, write 'Hello World!'
  3. # Key to trigger on
  4. # This hotkey must be in the format, 'ctrl+shift+a' (user holds ctrl, shift and 'a' at once)
  5. key = 'h'
  6. # Kind of action to perform
  7. # click -> Click a mouse button
  8. # click down -> Click a mouse button down, but never release up
  9. # key -> Type the following keys, pressing each key
  10. # key down -> Press the following keys down, never releasing them
  11. # mirror -> When the mirror key is pressed down so is key or button, on release so are key or button
  12. # See also example_mirror.toml
  13. kind = 'key'
  14. # Type this
  15. # This is required for 'key' and 'key down' kinds (Optional for 'mirror')
  16. # This hotkey must be in the format, 'ctrl+shift+a' (user holds ctrl, shift and 'a' at once)
  17. # This example will write 'Hello World!'
  18. write = 'shift+h, e, l, l, o, space, shift+w, o, r, l, d, shift+1'
  19. # If this should repeat X number of ticks
  20. # This is a simple example, it won't use this
  21. # Assuming tick speed is 20ms, this would occur every second
  22. #duration = 50
  23. # Use this mouse button
  24. # This is a simple example, it won't use this
  25. # This is required for 'click' and 'click down' kinds (Optional for 'mirror')
  26. # There currently is 'left' or 'right'
  27. #button = 'left'
  28. # Mirror key
  29. # This is a simple example, it won't use this
  30. # This is the key whose state will be mirrored
  31. # See also example_mirror.toml
  32. #
  33. # This hotkey must be in the format, 'ctrl+shift+a' (user holds ctrl, shift and 'a' at once)
  34. # This example will press 'g' when 'h' is down, and release 'g' when 'h' is up
  35. #mirror = 'g'
  36. # Optional Overrides
  37. # Override delay between each keys
  38. # Value in milliseconds
  39. delay = 50
  40. # Override hold delay for each key
  41. # Keys are sent like below:
  42. # 1. key down
  43. # 2. hold delay
  44. # 3. key up
  45. # 4. hold delay
  46. # 5. delay (see above)
  47. # 6. Repeat for keys
  48. # Value in milliseconds
  49. hold = 20