Jump to content

Recommended Posts

If FileExists(@ProgramFilesDir & "\Internet Explorer\iexplore.exe") Then

How 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 post
Share on other sites

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 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 post
Share on other sites

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 post
Share on other sites

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

Or 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 post
Share on other sites

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)

NEWHeader1.png

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...