achiever Posted March 21, 2007 Share Posted March 21, 2007 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 hope to recieve some help thks in advance, achiever. Link to comment Share on other sites More sharing options...
achiever Posted March 25, 2007 Author Share Posted March 25, 2007 can some plzz have look at this topic and help me out thks, achiever. Link to comment Share on other sites More sharing options...
MHz Posted March 26, 2007 Share Posted March 26, 2007 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. Link to comment Share on other sites More sharing options...
BrettF Posted March 26, 2007 Share Posted March 26, 2007 Check out the IE functions in the helpfile. They'll be a good friend. Oh and ClipPut () and ClipGet () they'll work wonders too Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Dschingis Posted March 27, 2007 Share Posted March 27, 2007 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 More sharing options...
achiever Posted March 30, 2007 Author Share Posted March 30, 2007 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 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