#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.

WinActivate Hercules_Server
Send, OSTAILOR QUIET{enter}
Send, ipl 150{enter}
sleep 1000

WinActivate herc - wc3270
Send,{enter}
sleep 1000
WinActivate herc - wc3270
Send, r 0,u{enter}

sleep 1000
WinActivate herc - wc3270
Send, r 1,format,noreq{enter}
sleep 1000
WinActivate herc - wc3270
Send, r 2,y{enter}
sleep 8000
WinActivate herc - wc3270
Send,{F12}
return



