Hello, Grelina!
Although it is not necessarily illegal, any use of external software can be detected by battleye as a macro.
This said, usually CipSoft does not ban someone for using macros like those, unless the community express they are bothered by macro players.
If you are willing to take those risks, it is ok to use, but it may cause some problems in the future because of that (later I can attach here a link on the website about this issue)