Jump to content

trying to select all on a web page..,,not working


Recommended Posts

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

#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

Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...