global file_chat := "chatlog.txt"
FileDelete, %file_chat%
SetTimer, Chat, 50
Chat:
{
FileRead, chatlog, % file_chat
if (RegExMatch(chatlog, "Ваш инвентарь полон", chattext))
{
sendinput, {e down}
sleep 50
sendinput, {e up}
sleep 1000
sendinput, {click 1033,402}
sleep 50...