Code: Select all
uid := "Username" ; Replace Username with email associated with B.net account (Keep the quotes)
pw := "Password" ; Replace with password associted with above email (Keep the quotes)
t := "10000" ; Adjust the number depending on performance. If current number dosen't work add ~1000 (Keep the quotes)
ow := "C:\Program Files (x86)\Overwatch\Overwatch.exe" ; Path of Overwatch.exe
#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.
#NoTrayIcon
Run, %ow%
Sleep, %t%
Send, %uid%{TAB}%pw%{ENTER}
sleep, 100
WinWait,Bosch
WinMaximize