Jump to content

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


Recommended Posts

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

 

 

Link to post
Share on other sites

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

Life's simple. You make choices and you don't look back.

Link to post
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 post
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

 

Life's simple. You make choices and you don't look back.

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...