#include <SendMessage.au3>
_ControlSend("[CLASS:MozillaUIWindowClass]", "", "", "^t") ;Новая вкладка
Func _ControlSend($sTitle, $sText, $iCtrlID, $sString)
Local $hWnd = WinGetHandle($sTitle, $sText)
If Not IsHWnd($hWnd) Then Return SetError(1, 0, 0)
;If BitAND(WinGetState($hWnd), 16) = 16 Then WinSetState($hWnd, "", @SW_RESTORE)
_SendMessage($hWnd, 0x6, 1)
ControlSend($hWnd, "", $iCtrlID, $sString)
EndFunc