Hello friends, can guide me on how to do to activate the submit button? I've opened in IE but the app is not compatible with IE I could login. The problem I have is that the submit button is not active and does not appear the audio record button. Please I need a guide to how to fix this: #include <ie.au3>
#include <GUIConstantsEx.au3>
$Form1 = GUICreate("WhatsApp - Autoit", 816, 550, 192, 124)
$oIE1 = _IECreateEmbedded()
_SetUserAgent("Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0")
GUICtrlCreateObj($oIE1, 8, 6, 800, 500)
GUISetState(@SW_SHOW)
_IENavigate($oIE1, "web.whatsapp.com")
;Create event sink for IE
$oIeEvent = ObjEvent($oIE1,"IEEvent_","DWebBrowserEvents2")
_IELoadWait($oIE1, 1000, 10000)
;$oIE1.Document.getElementsByClassName("send-container")[0].Click()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
Sleep(10)
WEnd
Func _SetUserAgent($agent)
$agentLen = StringLen($agent)
Dim $tBuff = DllStructCreate("char[" & $agentLen & "]")
DllStructSetData($tBuff, 1, $agent)
$chk_UrlMkSetSessionOption = DllCall("urlmon.dll", "long", "UrlMkSetSessionOption", "dword", 0x10000001, "ptr", DllStructGetPtr($tBuff), "dword", $agentLen, "dword", 0)
EndFunc ;==>_SetUserAgent