DaLiMan Posted March 4, 2005 Share Posted March 4, 2005 Hi, Maybe a stupid/ simple question but can someone help me with this? :"> I wan't to run a http:// shortcut in IE but IE is not my default browser, so obvious the code below does not work for me. RunWait(@ComSpec & " /c start http://http://www.autoitscript.com ", "", @SW_HIDE) How can I accomplish this? Link to comment Share on other sites More sharing options...
buzz44 Posted March 4, 2005 Share Posted March 4, 2005 maybe tell it to run IE first then send the link ?? qq Link to comment Share on other sites More sharing options...
SlimShady Posted March 4, 2005 Share Posted March 4, 2005 This works here: Run('explorer http://www.autoitscript.com', @WindowsDir) Link to comment Share on other sites More sharing options...
DaLiMan Posted March 4, 2005 Author Share Posted March 4, 2005 This works here:Run('explorer http://www.autoitscript.com', @WindowsDir)<{POST_SNAPBACK}>Overhere also.... Thanx, Link to comment Share on other sites More sharing options...
DaLiMan Posted March 21, 2005 Author Share Posted March 21, 2005 Why doesn't this work ? Run('explorer http://www.autoitscript.com', "", @SW_MINIMIZE ) It's SHOWS the window, but I asked MINIMIZED Link to comment Share on other sites More sharing options...
Andre Posted March 21, 2005 Share Posted March 21, 2005 Hi, Here also not minimized..... Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel! Link to comment Share on other sites More sharing options...
DaLiMan Posted March 21, 2005 Author Share Posted March 21, 2005 Hi,Here also not minimized.....Andre<{POST_SNAPBACK}>I can hardly imagine but could this be a bug? Link to comment Share on other sites More sharing options...
Valik Posted March 21, 2005 Share Posted March 21, 2005 Obviously, Explorer doesn't honor the request of SW_MINIMIZED. Documentation people: Perhaps it should be mentioned in Run/RunWait that the application may not honor the requested show state. Link to comment Share on other sites More sharing options...
DaLiMan Posted March 21, 2005 Author Share Posted March 21, 2005 Yeah, but strangely the code below DOES work. Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE", "", @SW_MINIMIZE) So, what's the catch.... Link to comment Share on other sites More sharing options...
Valik Posted March 21, 2005 Share Posted March 21, 2005 Yeah, but strangely the code below DOES work.Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE", "", @SW_MINIMIZE)So, what's the catch.... <{POST_SNAPBACK}>I told you. Explorer doesn't honor the SW_MINIMIZE flag. There is no guarantee that any program will actually honor the flag. It is simply a hint that "I would like to start this program in this state if I can". Its up to each individual program as to whether or not it wants to honor it. Link to comment Share on other sites More sharing options...
DaLiMan Posted March 21, 2005 Author Share Posted March 21, 2005 I told you. Explorer doesn't honor the SW_MINIMIZE flag. There is no guarantee that any program will actually honor the flag. It is simply a hint that "I would like to start this program in this state if I can". Its up to each individual program as to whether or not it wants to honor it.<{POST_SNAPBACK}>Sorry, didn't understood it that way. :"> Thanx for explaining. (again) Anyway, bummer....have to find another way / approach now..... Link to comment Share on other sites More sharing options...
Blue_Drache Posted March 21, 2005 Share Posted March 21, 2005 Sorry, didn't understood it that way. :"> Thanx for explaining. (again) Anyway, bummer....have to find another way / approach now.....<{POST_SNAPBACK}>Go back to your original RunWait(@compsec) ... it works if you get the quotations and/or the correct command line options correct. What you want is the /min feature of the start command.Try this:RunWait(@ComSpec & " /c " & "start /b /min explorer http://www.msn.com", "", @SW_HIDE) Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
MHz Posted March 21, 2005 Share Posted March 21, 2005 Opt('WinTitleMatchMode', 2) Run('explorer http://www.autoitscript.com') WinWait('Internet') WinSetState('Internet', '', @SW_MINIMIZE) Is this suitable? Link to comment Share on other sites More sharing options...
DaLiMan Posted March 22, 2005 Author Share Posted March 22, 2005 Go back to your original RunWait(@compsec) ... it works if you get the quotations and/or the correct command line options correct. What you want is the /min feature of the start command.Try this:RunWait(@ComSpec & " /c " & "start /b /min explorer http://www.msn.com", "", @SW_HIDE)<{POST_SNAPBACK}>Hi Blue_Drache,Thanx for the line, but it does not work here. Does it work at your place?@MHzWhat U are suggesting is what I use now.But I don't want the Window to be visible at all, not even at startup.Thanx for the reply though. Much appreciated. Link to comment Share on other sites More sharing options...
SlimShady Posted March 22, 2005 Share Posted March 22, 2005 (edited) Anyway, bummer....have to find another way / approach now.....<{POST_SNAPBACK}>Why?You said:Yeah, but strangely the code below DOES work.Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE", "", @SW_MINIMIZE)So, what's the catch.... <{POST_SNAPBACK}>Isn't that enough? What do you need more? Edited March 22, 2005 by SlimShady Link to comment Share on other sites More sharing options...
DaLiMan Posted March 22, 2005 Author Share Posted March 22, 2005 Why?You said:Isn't that enough? What do you need more?<{POST_SNAPBACK}>I need IE to open directly to a site.Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE", "", @SW_MINIMIZE)only opens IE in your startpage. ( Does minimize )Run('explorer http://www.autoitscript.com' )AndRunWait(@ComSpec & " /c " & "start /b /min explorer http://www.autoitscript.com", "", @SW_HIDE)Opens IE in the page you want. ( Does not minimize) Link to comment Share on other sites More sharing options...
SlimShady Posted March 22, 2005 Share Posted March 22, 2005 You're such a newbie. Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE www.autoitscript.com", "", @SW_MINIMIZE) Link to comment Share on other sites More sharing options...
DaLiMan Posted March 22, 2005 Author Share Posted March 22, 2005 You're such a newbie.Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE www.autoitscript.com", "", @SW_MINIMIZE)<{POST_SNAPBACK}>Yes, I know.It's not my work at all to be coding stuff and I now I'm not very good at it also... :"> Therefore I'm very glad I can rely on this forum to create working scripts and I look up to y'all who come up with this wonderfull scripts in AU3.Please don't hate me for it...... Thanx for youre help SlimShady, It's much appreciated. Link to comment Share on other sites More sharing options...
Blue_Drache Posted March 22, 2005 Share Posted March 22, 2005 Hi Blue_Drache,Thanx for the line, but it does not work here. Does it work at your place?<{POST_SNAPBACK}>Actually, it does. Go figure. Like Valik said, IE is a fickle beastie. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
Alterego Posted March 25, 2005 Share Posted March 25, 2005 Actually, it does. Go figure. Like Valik said, IE is a fickle beastie.<{POST_SNAPBACK}>doesn't work here. fickle indeed! This dynamic web page is powered by AutoIt 3. 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