Sign in to follow this  
Followers 0
Skrip

Homepage

10 posts in this topic

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]

Share this post


Link to post
Share on other sites



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?

Share this post


Link to post
Share on other sites

Another way is like this...

#include <Process.au3>
_RunDos("start Http://www.cnn.com")

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 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]

Share this post


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!

Share this post


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

Share this post


Link to post
Share on other sites

#9 ·  Posted (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 by PerryRaptor

Share this post


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

Share this post


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
Sign in to follow this  
Followers 0