bucky002 Posted April 27, 2006 Share Posted April 27, 2006 (edited) I am trying to make a script that keeps a IE window minimized and go's to the pages you tell it to with out opening and then saving html to a folder I choose. I can do the downloading the page just haven't started it yet.So here are my questions about the script below. $Input = InputBox("Web Address","Address:", "", "",50,50,320,250) $title1 = "CCS - Microsoft Internet Explorer" $text = "" $id = "Edit1" $id2 = "ToolbarWindow321" $backspace = "{BS}" GUICtrlRead($input) Run( @ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE", "", @SW_MINIMIZE) WinWait($title1) Sleep(1000) ControlClick($title1, $text, $id, "left", 1) ControlSend($title1, $text, $id, "http://" & $input & "/") ControlClick($title1, $text, $id2, "left")1. Why when it types in my input it types behind my homepage? Example: http://www.autoitscript.com/http://www.ccs.com/2.How do I get the whole script to shutdown if I press the "X" button on the inputbox?(I know how to do it with GUI's just not on a plain InputBox )3. Why when it clicks the go button it brings up the window?Edit: More questions4. How do I keep the inputbox up?It's probably easy to do all this, but I can't figure it out. Thanks. Edited April 27, 2006 by bucky002 Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 27, 2006 Share Posted April 27, 2006 check out IE.au3u can make an IE window and make it invisible yet still navigate with ithttp://www.autoitscript.com/forum/index.php?showtopic=13398 Link to comment Share on other sites More sharing options...
bucky002 Posted April 27, 2006 Author Share Posted April 27, 2006 check out IE.au3u can make an IE window and make it invisible yet still navigate with ithttp://www.autoitscript.com/forum/index.php?showtopic=13398I would like to do this without that if I can., but thanks anyway. I may check it out if I can't get this to work. Link to comment Share on other sites More sharing options...
Uten Posted April 27, 2006 Share Posted April 27, 2006 My guesses are:1. Why when it types in my input it types behind my homepage? Example: http://www.autoitscript.com/http://www.ccs.com/You have to add CTRL+A to select all the text in the input box.2.How do I get the whole script to shutdown if I press the "X" button on the inputbox?(I know how to do it with GUI's just not on a plain InputBox )When you hit the 'X' the input box is closed but you do no checking against $input or @error to see if it was closed.3. Why when it clicks the go button it brings up the window?Its not the go button that does that it is the first ControlClick or later. It's possible IE does not like to be clicked when minimized?Edit: More questions4. How do I keep the inputbox up?You cant so you have to create your own if you want it to stay put. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling 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