example.toml 2.7 KB

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