example.toml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Keybind to what key
  2. # This can be any key, but must be only 1
  3. #
  4. keybind = "h"
  5. # Kind of action to perform
  6. # click -> Click a mouse button
  7. # key -> Type the following keys (pressing each key)
  8. # click down -> Click and never release a mouse button
  9. # key down -> Press the following keys (never releasing them)
  10. #
  11. kind = "key"
  12. # << Optional >>
  13. # Write this out
  14. # This is required for 'key' and 'key down' kinds
  15. # Capital letters will automatically include 'shift'
  16. # TODO: Separate each of these by space (as space should be 'space' rather than ' ', so other keybinds 'ctrl c' can work)
  17. #
  18. write = "Hello World!" # This works, but uses unexpected/undesired space (See TODO above)
  19. # This is commented out because the example doesn't do a repeated thing
  20. # If this should repeat, like an auto clicker
  21. # Simply define a duration between clicks (this runs at 20 milliseconds, so 1 full second is 50)
  22. #
  23. #duration = 50
  24. # This is commented out so this example works
  25. # Use this Button
  26. # This is required for 'click' and 'click down' kinds
  27. # There is 'left' and 'right'
  28. #
  29. #button = "left"
  30. # << Override >>
  31. # The below values are set to their defaults
  32. # These are optional, and only used for this keybind
  33. # Override delay between each key
  34. # This is how long to wait after sending a key
  35. # Value in milliseconds (1000/second)
  36. #
  37. delay = 50
  38. # Override hold delay for each key
  39. # Keys are sent like below:
  40. # 1. key down
  41. # 2. hold delay
  42. # 3. key up
  43. # 4. hold delay
  44. # 5. delay (see above)
  45. # Value in milliseconds (1000/second)
  46. #
  47. hold = 20