Skrip Posted December 17, 2005 Share Posted December 17, 2005 If FileExists(@ProgramFilesDir & "\Internet Explorer\iexplore.exe") ThenHow can I make it send to the home page?Yes i did a search! [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
PerryRaptor Posted December 17, 2005 Share Posted December 17, 2005 What do you mean by "...send to the home page"? Do you want to launch Internet Explorer (IE)? Do you want to launch IE and navigate to a specific webpage? Link to comment Share on other sites More sharing options...
Bert Posted December 17, 2005 Share Posted December 17, 2005 (edited) run c:\program files\internet explorer\iexplorer.exe -new http:// "homepage" homepage - whatever webpage you want Edited December 17, 2005 by vollyman The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
PerryRaptor Posted December 17, 2005 Share Posted December 17, 2005 Another way is like this... #include <Process.au3> _RunDos("start Http://www.cnn.com") Link to comment Share on other sites More sharing options...
Andrew Sparkes Posted December 17, 2005 Share Posted December 17, 2005 Or if you wanted to do more with the browser, use Dale's IE Automation library: #include <IE.au3> $ie_browser=_IECreate() _IENavigate($ie_browser,'http://www.google.com') ---Sparkes. Link to comment Share on other sites More sharing options...
Skrip Posted December 17, 2005 Author Share Posted December 17, 2005 (edited) What I wanted to do is something like when I went to a certain page or pressed a certain button I would go back to my home page (I use IE) I don't want to change the H/P but just to go there Edited December 17, 2005 by Firestorm [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
CyberSlug Posted December 17, 2005 Share Posted December 17, 2005 If you want an existing Internet Explorer to go to the home page, try the following:#include <Constants.au3> Opt("WinTitleMatchMode", $OPT_MATCHANY) $title = "Internet Explorer" WinActivate($title) WinWaitActive($title) Send("!{Home}");Alt+Home ; Unfortunately, the following does NOT work with IE WinMenuSelectItem($title,"","&View", "G&o To", "&Home Page") Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
DaleHohm Posted December 17, 2005 Share Posted December 17, 2005 What I wanted to do is something like when I went to a certain page or pressed a certain button I would go back to my home page (I use IE) I don't want to change the H/P but just to go thereOr with IE.au3 #include <IE.au3> $oIE = _IEAttach("Internet Explorer) _IEAction($oIE, 'home') Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
PerryRaptor Posted December 17, 2005 Share Posted December 17, 2005 (edited) You want a program to run in the background; waiting for you to press keys on the keyboard to take you to specific web pages. Check out HotKeySet() in the AutoIT Help File. Edited December 17, 2005 by PerryRaptor Link to comment Share on other sites More sharing options...
Valuater Posted December 17, 2005 Share Posted December 17, 2005 this is a combination of most of the suggestions.... however... i am now getting an ERROR reading IE.au3??? ; Press Esc to terminate script, Pause/Break to "pause" #include <GUIConstants.au3> #include <IE.au3> Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") HotKeySet("{F9}", "Homepage") ;;;; Body of program would go here;;;; While 1 Sleep(100) WEnd ;;;;;;;; Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc Func Homepage() $oIE = _IEAttach("Internet Explorer") _IEAction($oIE, 'home') Sleep(2000) _IEQuit($oIE); EndFunc 8) 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