Recently I’ve had a problem where steam seems to forget my fav servers, especialy after a crash… and I’m tired of re-entering them.
I wrote an autoit script to re-add them all, then thought you might enjoy it.
You DO need autoit to run the script, you can get it Over here
Anyway the script goes something like
#Run script with Servers window open to the Favourites page
#Updated - Added DOD and BG mods (Dunno how they got missed)
AutoItSetOption("MouseCoordMode", 0)
AutoItSetOption("SendKeyDelay",1)
Opt("WinTitleMatchMode", 3)
$Answer = msgbox(65,"Node Servers","This script will automaticly add Nodes servers to the Steam Favourites" & @LF & "Please be sure to have Steam Servers open to the Favourites page" & @LF & "DO NOT touch your KB/Mouse till this script is finished")
if ($answer <> 1) then
msgbox(64, "Node Servers","Cancelled")
exit
endif
WinActivate("Servers")
$State = WinGetState("Servers")
if (BitAnd($State,15) == 15) then
# Add more servers in here
AddServer("css-",1,18,"%02u")
AddServer("hl2mp-",1,2,"%02u")
AddServer("cs-",1,13,"%02u")
AddServer("dm-",1,1,"%u")
AddServer("ns-",1,2,"%u")
AddServer("cz-",1,1,"%u")
AddServer("dod-",1,9,"%u")
AddServer("bg-",1,1,"%u")
msgbox (64,"Node Servers","Done");
else
msgbox (48,"Node Servers","I couldn't find the Servers window")
exit
endif
# AddServer
# Call with the servers prefix, the first server no. and the last server no.
# You also need to specify the format
# Format:
# if server has 01 then you need the format "%02u"
# if server has 1 then you need the format "%u"
func AddServer($Pref,$Min,$Max,$Format)
ProgressOn("Adding Servers","Adding " & $Pref & " Servers","0 / " & $Max & " Completed")
for $i = $Min to $Max
WinActivate("Servers")
$Info = WinGetPos("Servers")
$Left = $info[2] - 230
$Top = $info[3] - 49
MouseClick("left",$Left,$Top,1,1)
if (WinWaitActive("Add Server - Servers","",1) == 0) then
ProgressOff()
msgbox(48,"Node Servers","Meh, I can't find the add server window, probably because I wasn't on the Favourites page")
exit
endif
#You can replace ".games.internode.on.net" with what ever suffix you need
send($Pref & StringFormat($Format,$i) & ".games.internode.on.net")
MouseClick("left",250,210,1,1)
ProgressSet(Round(($i/$Max)*100), $i & " / " & $Max & " Completed")
next
ProgressOff()
EndFunc