serena_knight Posted June 25, 2021 Share Posted June 25, 2021 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 comment Share on other sites More sharing options...
SkysLastChance Posted June 25, 2021 Share Posted June 25, 2021 (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 June 25, 2021 by SkysLastChance You miss 100% of the shots you don't take. -Wayne Gretzky -Michael Scott Link to comment Share on other sites More sharing options...
serena_knight Posted June 25, 2021 Author Share Posted June 25, 2021 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 More sharing options...
SkysLastChance Posted June 25, 2021 Share Posted June 25, 2021 #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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now