Blade1 Posted July 1, 2011 Share Posted July 1, 2011 Hi, I'm running Windows 7 and using autoscript. I want to launch IE9 at a specified address (works), press ctrl s and save the webpage. The last 2 bits I cannot do. The script below is what I have. $my_url = "http://www.google.com" ShellExecute ( "C:\Program Files\Internet Explorer\iexplore.exe", $my_url ) Send("^S") However, the Send() function does not successfully open the save dialog. How can I do this? Thanks Link to comment Share on other sites More sharing options...
monoscout999 Posted July 1, 2011 Share Posted July 1, 2011 If you use Send() you will need to have the IE windows on front, maybe ControlSend() will be more useful. Link to comment Share on other sites More sharing options...
Blade1 Posted July 2, 2011 Author Share Posted July 2, 2011 If you use Send() you will need to have the IE windows on front, maybe ControlSend() will be more useful.That function takes a few parameters. What would be an example of using that function on a webpage? Link to comment Share on other sites More sharing options...
jaberwacky Posted July 2, 2011 Share Posted July 2, 2011 (edited) #include <IE.au3> Local $oIE = _IECreate("http://www.google.com") _IEAction($oIE, "saveas") Edited July 2, 2011 by LaCastiglione Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
monoscout999 Posted July 2, 2011 Share Posted July 2, 2011 (edited) Mt IE dont have the Save option even the File menu... and my mozilla resist the key sending. for example: this should work, but it doesn´t Controlsend("[CLASS:MozillaUIWindowClass]","","[CLASS:MozillaWindowClass;INSTANCE:1]","^S") Maybe InetGet() will be useful. you can get html bodys or images or wherever you want. $my_url = "http://www.google.com" $my_file = "google.html" $inetget = InetGet($my_url,$my_file) Edited July 2, 2011 by monoscout999 Link to comment Share on other sites More sharing options...
Blade1 Posted July 2, 2011 Author Share Posted July 2, 2011 #include <IE.au3> Local $oIE = _IECreate("http://www.google.com") _IEAction($oIE, "saveas") This worked perfectly! Thanks. How could I save the file in the save as box? Sorry for all the questions! Link to comment Share on other sites More sharing options...
jaberwacky Posted July 3, 2011 Share Posted July 3, 2011 At this point your ship has sailed into the seas of AutoIt. You are the captain. Use the star chart to help you chart your course. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? 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