Jump to content

select and paste in invisible mode


Recommended Posts

hi,

like many other before i found the joys of AutoIT

i need to select text from a online page and save it as text document

here is my attempt at it

#include <IE.au3>
#include <File.au3>

For $i = 100 to 1 Step -1
    $oIE = _IECreate("http://www.any_page.com")
;_IEAction($oIE, "invisible")
    Sleep(2000)
    Send("{F5}")
    Sleep(10000)
    MouseClickDrag("left", 215, 350, 215, 553)
;Send("^a")
    Send("^c")
    $sHTML = _IEDocReadHTML($oIE)
    Run("Notepad.exe")
    WinWaitActive("Untitled - Notepad")
    Send("^v")
    WinClose("Untitled - Notepad")
    send("!y")
    Sleep(1000)
    Send("criscore.txt")
    Sleep(1000)
    Send("{Enter}")
    Send("y")
    Sleep(1000)
    Send("!{F4}")
    Sleep(180000)
Next

this code select a text by mouse and the saves it, this process is repeated after 3 mins.

now what i need is that this process should be invisible.

i require just some part of page to get selected which i do thru mouse but in invisible mode this script of mine selects the windows' text on screen.

so can some 1 help me make the changes such that it will select some text from a online webpage and save in a notepad but the whole process should be invisible.

hope i was able to make myself clear :whistle:

hope to recieve some help

thks in advance,

achiever.

Link to comment
Share on other sites

Link to comment
Share on other sites

In other words forget about com and IE functions. Just try this one:

InetGet

--------------------------------------------------------------------------------

Downloads a file from the internet using the http or ftp protocol.

InetGet ( "URL" [,"filename" [, reload [, background]]] )

To be more exactly:

InetGet ( "www.any_page.com" ,"criscore.txt")

This can be done completely in background mode. You still have to do some string operations as you get all html source in your file but that should be basic (of course).

Link to comment
Share on other sites

hi,

glad to c the response.

but, i m not able to work ne further than what i had done even with ur help. so plzz can ne 1 just get down script this.

- i dont need the selecting to be done by mouse i want it specially to be done in invisible mode.

- i did check out the ClipPut () and ClipGet () functions but could not get to work with it.

- and i want the text displayed on site to be copied and not its source.

thks for the help.

achiever.

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