Jump to content

Select and Copy text from Browser


 Share

Recommended Posts

I am really new to AutoIT. So I have few questions how select particular text for example browser and copy it, The paste it in notepad.

I mean I want to make script opening OpenGUI VPN and when login within a password he takes information (password which changing every few weeks) from vpnbook.com

Can someone help with coding... Thank you for my attention

Link to comment
Share on other sites

You can use IE* functions to handle that. read about in help file/forum.

 

Saludos

Link to comment
Share on other sites

He Red_Panda,

I am new myself but I have some code that I think might help. It takes data from Internet Explorer web pages and puts it into excel. I hope it helps.

#include <IE.au3>
#include <Excel.au3>


$oExcel = _Excel_Open()
$oWorkbook = _Excel_BookNew($oExcel, 2)
$sBox = InputBox ("Chart", "How Many Times")
Global $oIE = _IE_Example("basic")
_IELoadWait($oIE)



Local $i = 1
Do

    $oDiv = _IEGetObjById($oIE, "line1")
    _Excel_RangeWrite($oWorkbook,Default, $oDiv.innertext, "A" & $i)
    $oDiv = _IEGetObjById($oIE, "line2")
    _Excel_RangeWrite($oWorkbook,Default, $oDiv.innertext, "B" & $i)
    $oDiv = _IEGetObjById($oIE, "line3")
    _Excel_RangeWrite($oWorkbook,Default, $oDiv.innertext, "C" & $i)


    $i = $i + 1
Until $i > $sBox

 

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...