AutoItSetOption("WinDetectHiddenText", 1) Opt("WinTitleMatchMode", 1) While 1 Sleep(1) $ctrltext = WinGetText("[talibot, online in channel The Void] - StealthBot v2.6 Revision 3", "") If $ctrltext <> WinGetText("[talibot, online in channel The Void] - StealthBot v2.6 Revision 3", "") Then $ctrltext =WinGetText("[talibot, online in channel The Void] - StealthBot v2.6 Revision 3", "") ;MsgBox (0, "Text Added!", "A new line has been added" &@CRLF &$ctrltext) $string = StringSplit ($ctrltext, @LF, 1) For $n = $string[0] To 1 Step -1 If StringStripWS($string[$n],4) <> "" Then ; MsgBox (0, "No. Lines", "The control has " & $string[0] & " lines." & @CRLF & "Last non-blank line: " & $string[$n]) ControlSend("mIRC - [#Talibaals", "", "Edit1", $string[$n]) ControlSend("mIRC - [#Talibaals", "", "Edit1", "{ENTER}") ExitLoop EndIf Next EndIf WEnd