example.toml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Keybind to what key
  2. # This can be any key, but must be only 1
  3. # On keybinds with durations or mirrors, this toggles them on and off
  4. #
  5. keybind = "h"
  6. # Kind of action to perform
  7. # click -> Click a mouse button
  8. # key -> Type the following keys (pressing each key)
  9. # click down -> Click and never release a mouse button
  10. # key down -> Press the following keys (never releasing them)
  11. # 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)
  12. # See also example_mirror.toml
  13. #
  14. # mirror is disabled, due to unwanted latency
  15. #
  16. kind = "key"
  17. # << Optional >>
  18. # Write this out
  19. # This is required for 'key' and 'key down' kinds (Optional in 'mirror' kinds, should be a single key)
  20. # Capital letters will automatically include 'shift'
  21. # TODO: Separate each of these by space (as space should be 'space' rather than ' ', so other keybinds 'ctrl c' for CTRL+C can work)
  22. # (It would also then be possible for 'shift' to be a valid keybind output)
  23. #
  24. write = "Hello World!" # This works, but uses unexpected/undesired space (See TODO above)
  25. # This is commented out because the example doesn't do a repeated thing
  26. # If this should repeat, like an auto clicker
  27. # Simply define a duration between clicks (this runs at 20 milliseconds, so 1 full second is 50)
  28. #
  29. #duration = 50
  30. # This is commented out so this example works
  31. # Use this Button
  32. # This is required for 'click' and 'click down' kinds (Optional in 'mirror' kinds)
  33. # There is 'left' and 'right'
  34. #
  35. #button = "left"
  36. # This is commented out because the example isn't a 'mirror' kind
  37. # This is the key that will be mirrored (It's down or up states will be mirrored in write or button as defined above)
  38. # See also example_mirror.toml
  39. #
  40. # mirror is disabled, due to unwanted latency
  41. #
  42. #mirror = "g"
  43. # << Override >>
  44. # The below values are set to their defaults
  45. # These are optional, and only used for this keybind
  46. # Override delay between each key
  47. # This is how long to wait after sending a key
  48. # Value in milliseconds (1000/second)
  49. #
  50. delay = 50
  51. # Override hold delay for each key
  52. # Keys are sent like below:
  53. # 1. key down
  54. # 2. hold delay
  55. # 3. key up
  56. # 4. hold delay
  57. # 5. delay (see above)
  58. # Value in milliseconds (1000/second)
  59. #
  60. hold = 20