Jump to content

Recommended Posts

Posted

using this cod

 

$wh = winactivate("www.msn.com")

tried

send("{^a}")   --- didnt work

tried

controlsend("$wh,,"","Internet Explored_Server1","{^a}")  --- didnt work

only thing work sis manually doing a ctrl + a

 

 

Posted (edited)

There is probably a better way to do what you want using. 

_IEBodyReadText ( ByRef $oObject )

However, This works for me. 

#include <IE.au3>

Opt ("SendKeyDelay",50)

Local $oIE = _IECreate("www.msn.com")

_IELoadWait($oIE)

ControlSend("MSN","","",("{TAB}"))
ControlSend("MSN","","",("^a"))

 

Edited by SkysLastChance

You miss 100% of the shots you don't take. -Wayne Gretzky -Michael Scott

Posted

sorry didn't work,,,seems nothing work

have also tied things lie $win= "https:://WWW.msn.com"

$wh = wingethandle($win)

what is returned is "x000000"

i.e. that was from a EDGE and i tried CHrome

seems nothing works on those browsers

i really need to get info using those browsers and explorer has been disconnected

 

Posted
#include <IE.au3>

$oIE = _IECreate('msn.com')
_IELoadWait($oIE)
Sleep (1000)

$IEObject = _IEGetObjByname($oIE, "q")
_IEAction($IEObject,"blur")
_IEAction($oIE, "selectall")
_IEAction($oIE, "copy")

Maybe this?

If you don't want to use IE. I would suggest looking into https://www.autoitscript.com/wiki/WebDriver

 

You miss 100% of the shots you don't take. -Wayne Gretzky -Michael Scott

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
×
×
  • Create New...