The macro "Auto_heal" for "Factorio" can be downloaded and used on regular mouse and keyboard.
Installing the macro is very simple in the Keyran program and enhances your gaming experience!
A macro for automatically restoring the hero's health at low values, about 1/5 of full, with additional functions.
Inside the macro, automatic detection of containers, for example, turrets, is implemented - if opened by accident, the script will close the menu itself and continue working without failures. Also, the script will automatically detect the presence of fish in the third slot of the inventory - if there is no fish, the macro will continue to work normally without causing errors.
For the script to function, the presence of fish in the third slot of the inventory is required.