Autohotkey login/pw and rcon macro


(Conq) #1

Made this for myself but figured I’d share.

F1::
send {home}rcon{space}{enter}
return

F2::
send net_clientRemoteConsoleAddress IP:PORT{enter}net_clientRemoteConsolePassword PASSWORD{enter}
return

Just a simple Autohotkey script to save time. Hit F2 to login and F1 to insert the rcon at the front of your command lines.

Example:

Type “admin kick” and press tab to show player names and numbers then type the number you want and F1.


(Singh400) #2

Anyway to do all this via binding and autoexec.cfg?


(frog) #3

In autoexec.cfg put

seta net_clientRemoteConsoleAddress X.X.X.X
seta net_clientRemoteConsolePassword “password”

There is no way to achieve sending the HOME keyboard signal followed by "rcon " using binds.
Instead just bind "rcon " and press HOME yourself.


(Singh400) #4

[QUOTE=frog;313147]In autoexec.cfg put

seta net_clientRemoteConsoleAddress X.X.X.X
seta net_clientRemoteConsolePassword “password”[/quote]Thanks, but got that already.


(Flubber) #5

Will this work in case of multiple server on different port (like x.x.x.x:27300 & 27310 etc…)?


(Bettik) #6

I would imagine you could bind a key to execute a custom cfg file in the same location as your autoexec.cfg that contains all the login commands, no? You could make additional adminlogin.cfg for each server you run, as well.


//Add to autoexec.cfg
bind "F1" "exec adminlogin.cfg"


//Contents of adminlogin.cfg
seta net_clientRemoteConsoleAddress ###.###.###.###:#####
seta net_clientRemoteConsolePassword "?????"


(Flubber) #7

Yeah, i was thinking the same, thx mate.