GodAnubis Posted September 3, 2008 Share Posted September 3, 2008 (edited) I am trying to write a script to process and download reports off a webpage. In the past I have used safari or firefox and had this code run: CODEWhile PixelGetColor(180,67) <> 16711422 Sleep(250) WEnd It would look at either the loading box in the status bar or in safari's case the address bar, which changes color as a page is loading. One problem in doing this is that the browser window has to be on a specific screen, at a specific size, and using a specific color theme. I am now wanting to rewrite my scripts to work on Google's Chrome browser. I don't however see any pixel colors that I could observe changes in, to know if a page is finished loading. Does anyone know of a way that I could get this working? Edited September 3, 2008 by GodAnubis Link to comment Share on other sites More sharing options...
spudw2k Posted September 3, 2008 Share Posted September 3, 2008 Have you tried the InetGet function? It uses IE, but doesn't require the browser to display or be a certain window size or any of the issues that can arise from automating a graphic process. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted September 3, 2008 Share Posted September 3, 2008 The loading-bar is in the lower left corner .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
GodAnubis Posted September 3, 2008 Author Share Posted September 3, 2008 But the loading bar does not always appear. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted September 3, 2008 Share Posted September 3, 2008 But the loading bar does not always appear.If you want to do any good automating with a webbrowser use the udf for IE Management, IE.au3 .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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