example.toml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # Example Keybind, aka Main Keybind Docs
  2. #
  3. # When H is pressed, write "Hello World!"
  4. # Keybind to trigger on
  5. # The hotkey must be in the format "ctrl+shift+a, s".
  6. # This would trigger when the user holds ctrl, shift and "a" at once, releases, and then presses "s".
  7. # To represent literal commas, pluses, and spaces, use their names ('comma', 'plus', 'space').
  8. #
  9. keybind = "h"
  10. # Kind of action to perform
  11. # click -> Click a mouse button
  12. # key -> Type the following keys (pressing each key)
  13. # click down -> Click and never release a mouse button
  14. # key down -> Press the following keys (never releasing them)
  15. # mirror -> When the "mirror" key is pressed fire this keybind also (While the mirror key is down this bind is active, when up, bind is inactive)
  16. # See also example_mirror.toml
  17. #
  18. kind = "key"
  19. # << Optional >>
  20. # Write this out
  21. # This is required for 'key' and 'key down' kinds (Optional in 'mirror' kinds)
  22. # The hotkey must be in the format "ctrl+shift+a, s".
  23. # This would trigger when the user holds ctrl, shift and "a" at once, releases, and then presses "s".
  24. # To represent literal commas, pluses, and spaces, use their names ('comma', 'plus', 'space').
  25. #
  26. # This example: "shift+h, e, l, l, o, space, shift+w, o, r, l, d, shift+1" translates to "Hello World!"
  27. #
  28. write = "shift+h, e, l, l, o, space, shift+w, o, r, l, d, shift+1"
  29. # This is commented out because the example doesn't do a repeated thing
  30. # If this should repeat, like an auto clicker
  31. # Simply define a duration between clicks (this runs at 20 milliseconds, so 1 full second is 50)
  32. #
  33. #duration = 50
  34. # This is commented out so this example works
  35. # Use this Button
  36. # This is required for 'click' and 'click down' kinds (Optional in 'mirror' kinds)
  37. # There is 'left' and 'right'
  38. #
  39. #button = "left"
  40. # This is commented out because the example isn't a 'mirror' kind
  41. # This is the key that will be mirrored (It's down or up states will be mirrored in write or button as defined above)
  42. # See also example_mirror.toml
  43. #
  44. # The hotkey must be in the format "ctrl+shift+a, s".
  45. # This would trigger when the user holds ctrl, shift and "a" at once, releases, and then presses "s".
  46. # To represent literal commas, pluses, and spaces, use their names ('comma', 'plus', 'space').
  47. #
  48. # This example: "g" will press the "g" key down when "h" is down, and release "g" when "h" is up
  49. #
  50. #mirror = "g"
  51. # << Override >>
  52. # The below values are set to their defaults
  53. # These are optional, and only used for this keybind
  54. # Override delay between each key
  55. # This is how long to wait after sending a key
  56. # Value in milliseconds (1000/second)
  57. #
  58. delay = 50
  59. # Override hold delay for each key
  60. # Keys are sent like below:
  61. # 1. key down
  62. # 2. hold delay
  63. # 3. key up
  64. # 4. hold delay
  65. # 5. delay (see above)
  66. # Value in milliseconds (1000/second)
  67. #
  68. hold = 20