Sign in to follow this  
Followers 0
achiever

select and paste in invisible mode

6 posts in this topic

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.

Share this post


Link to post
Share on other sites



can some plzz have look at this topic and help me out

thks,

achiever.

Share this post


Link to post
Share on other sites

Mouse functions cannot be done invisible. You could setup a virtual machine to do all this or perhaps use mostly Com which may help with your needs.

:whistle:

Share this post


Link to post
Share on other sites

Share this post


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

Share this post


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

Share this post


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
Sign in to follow this  
Followers 0