Been a while since I did some AHK scripts for games.
And I only use them in SP (Single Player) games.
First of, AHK is a keyboard script (More or less) and doesn't automatically work in the game's executable the way you have set it up.
First off (And with what I remember):
- You need to read up on the AHK scripting. (Only way to learn)
- Then you need to use Window Spy (Or Scripts made by AHK members), to find the game's ahk_class, ahk_exe etc.
- Then you need to implementing that into your AHK script the correct way so the script register when the .Exe is active. Otherwise it will work all the time. (Read up on this to learn)
- You also need the script to open the console before using your commands. Otherwise you will not do anything in the game at all
- It is a reason you don't have got any response yet. This is Atypical for wanting help without actually trying to learn AHK scripting. No offence
![Wink ;)](./images/smilies/icon_e_wink.gif)
- So, if this is something you really want to learn, do it. As it also gives you a peek into the world of scripting & possibly programming. And it is awesome!
- A spray clan tag is innocent enough, but be aware, using this in MP games can get you in trouble, even though I don't know how Valve and.. Is it called Overwatch in CS? React to keyboard scripts like this. Fair warning given.
PS: Use code tags to put your script in, like this next time:
Code: Select all
bind "kp_down" "+forward;cl_clanid [clantag id]"
bind "kp_up" "+moveleft;cl_clanid [clantag id]"
bind "kp_left" "+back;cl_clanid [clantag id]"
bind "kp_right" "+moveright;cl_clanid [clantag id]"
Another thing, I have not checked your actually script will work if you do what I suggested over. I don't play CS, so I don't use Valve's Console Commands.
Good luck!
hugin