Jump to content

web application load


Recommended Posts

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

 

WhatsApp Autoit_.jpg

Link to comment
Share on other sites

I suspect that the problem is not that it is not compatible with IE, more likely it is not compatible with IE7, which is what an embedded IE is.

Embedded IE is pretty much useless these days for all but the most basic websites.

One option is to pseudo embed a full explorer window in kiosk mode.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

  • 1 month later...

Thank you for responding, I imagined it was. How I can do what you recommend (window in kiosk mode) or is not a good idea to continue the script.

 

https://www.autoitscript.com/forum/topic/161333-_newiecreatepseudoembedded-create-embedded-ie-frame-with-latest-ie-version

I think this is what you need.

Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...