From 6cae50c43e9007342d5eed57ce36f6deca5b3190 Mon Sep 17 00:00:00 2001 From: Tobi Date: Sat, 2 Oct 2021 01:16:04 +0200 Subject: [PATCH] Update macros.md --- readme/macros.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/readme/macros.md b/readme/macros.md index 8ee71441..6b504da7 100644 --- a/readme/macros.md +++ b/readme/macros.md @@ -131,8 +131,8 @@ Bear in mind that anti-cheat software might detect macros in games. ### event -> Writes an event. type, code and value of existing keys be found via the `sudo evtest` -> command +> Writes an event. Examples for `type`, `code` and `value` can be found via the +> `sudo evtest` command > > Shorthand: `e` > @@ -155,6 +155,10 @@ Bear in mind that anti-cheat software might detect macros in games. > Variables can be used in function arguments by adding a `$` in front of their name: > `repeat($foo, key(KEY_A))` > +> Their values are available for other injections/devices as well, so you can make them +> interact with each other. In other words, using `set` on a keyboard and `if_eq` with +> the previously used variable name on a mouse will work. +> > ```c# > set(variable: str, value: str | int) > ``` @@ -168,7 +172,7 @@ Bear in mind that anti-cheat software might detect macros in games. ### if_eq -> Compare two values and run different macros depending on the outcome +> Compare two values and run different macros depending on the outcome. > > ```c# > if_eq(value_1: str | int, value_2: str | int, then: Macro | None, else: Macro | None)