im not quite sure in how to do that but ill try
Ok -edit- this is what i got but i dont think there is a window name for d2bs so what should i do? im going to test this right now tell me if you think it should work. another-edit- just tested and it says error line -1 exrpession error =/
call ("startup")
func startup()
Run ( "D2BS.EXE","")
sleep(600)
Run( "C:\Program Files\Diablo II\Diablo II.exe -w")
WinWait("Diablo II")
WinSetState("Diablo II","",@SW_MINIMIZE)
sleep(650)
call ("dstart")
EndFunc
func dstart()
ControlClick("D2BS", "", [, Left [, 1 [, 425[, 405]]]] )
sleep(250)
ControlClick("D2BS", "", [, Left [, 1 [, 425[, 476]]]] )
sleep(250)
ProcessClose("D2BS.exe")
WinWait("Diablo II")
WinSetState("Diablo II","",@SW_MAXIMIZE)
sleep(250)
call ("exep")
EndFunc
func exep()
winwait("Diablo II E")
Sleep(3000)
ProcessClose("game.exe")
sleep(3000)
call ("startup")
EndFunc