Switching between same key macro's Topic is solved

Ask gaming related questions

Switching between same key macro's

18 Aug 2018, 11:52


I currently have a multitude of different files that have different macro's for the same key (namely: g or b) with different behaviour all for the same game.

For example:


Now my idea was to create a GUI where I could easily switch between these different macro's via radio button or something but I have no idea how to start. If this would be possible I would only have 1 file with all my macro's instead of 10 seperate ones that need me to manualy switch between them.

Any help to get me along the way would be greatly appreciated! (even a refference to a topic where something similar is being done would work, I didn't find any at first glance)
Posts: 1090
Joined: 11 Jan 2017, 17:59

Re: Switching between same key macro's

22 Aug 2018, 12:22

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


Re: Switching between same key macro's

22 Aug 2018, 14:40

Thanks so much for your reply!

However, if I'm not mistaken this will only work as long as the macro is in the same manner:

send somekeys
sleep 2

But if I were to introduce some macro's with more commands, for example:


With these macro's I wouldn't be able to integrate them atm. I should have introduced this in my first post already, my bad, eventhough most of them are simple like the first examples :)

Thank you very much for your time already cause with this I will be able to integrate the better part of my macro's into 1 already. I really appreciate it! In the meantime I'll read up and try to get smarter and maybe figure it out myself ;)
Posts: 1
Joined: 22 Aug 2018, 14:42

Re: Switching between same key macro's  Topic is solved

27 Aug 2018, 07:43

I got it to work the way I want it but I'm not sure if the script is very efficient.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

I can now add the few multi-line macro's I have as functions while keeping the rest as they are. Also in addition I can opt for an empty string "" if I don't want to make a macro for a certain key. (first radiobutton g-key for example, will work as a normal "g" instead of a hotkey).

This now works as I want it to work. If there's any improvements I can make, let me know. Special thanks to swagfag for guiding me towards my solution.

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 11 guests