Jump to content

Select and Copy text from Browser

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 post
Share on other sites

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



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

Local $i = 1

    $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


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