Page 1 of 1

I am trying to make a script that will automatically reconnect me to a server

Posted: 16 Nov 2017, 14:25
by FROST
I am trying to make a script that will automatically reconnect me to my Garry's Mod server by typing "retry" in console ever 2 hours. So far I have only been able to get it to open the chat box and type "etry". Any help would be appreciated I am very new to autohotkey.

The key to open the console is `

This is my current script

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

#Persistent
SetTimer, PressTheKey, 18000
Return

PressTheKey:
Send,` retry {enter}
Return