Jump to content

Lunch IE and navigate


ljkkda
 Share

Recommended Posts

how to lunch IE and navigate to a URL

i found this but it dosnt work there only come an error message "unknown function name"

$oIE = ObjCreate("Shell.Explorer.2")

$oIE.navigate("http://www.maidmarian.com/MOONBASE.htm")

You have to have the latest beta. You may also need a file to be included with your script such as IE.au3. Hopefully someone more qualified will come and answer any more questions you may have. I am only able to give a brief answer.

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Link to comment
Share on other sites

is there no other way to do this?

You could just use the run command for your browser and add the url as a command line option.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

is there no other way to do this?

Sure you can always use Run() with or without @ComSpec. I will try to post an example later. I have to get off the net for now...

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Link to comment
Share on other sites

try em all B)

Func _INetBrowse($s_URL, $i_OPT = 2)
Switch $i_OPT
Case 0
;drawback: doesnt work on urls with "&"
RunWait(@comspec & ' /c start ' & $s_URL, @WorkingDir, @SW_HIDE)
return 1
Case 1
;thx to sykes <---------------------------------------------
RunWait("rundll32.exe url.dll,FileProtocolHandler " & $s_URL, @WorkingDir)
Return 1
Case 2
;prefered 1
DllCall("Shell32.dll", "int", "ShellExecute", "hwnd", 0, "str", 'open', "str", $s_URL, "str", '', "str", @WorkingDir, "int", 10)
return 1
Case 3
;prefered 2
$o_SA = ObjCreate('Shell.Application')
$o_SA.Open($s_URL)
return 1
EndSwitch
Return 0
EndFunc;==>_INetBrowse

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

Link to comment
Share on other sites

Try

#include <Process.au3>
$rc = _RunDos("start iexplore.exe Http://www.autoitscript.com")


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

how to lunch IE and navigate to a URL

i found this but it dosnt work there only come an error message "unknown function name"

$oIE = ObjCreate("Shell.Explorer.2")

$oIE.navigate("http://www.maidmarian.com/MOONBASE.htm")

If you care to use IE.au3 it would look like this:
#include <IE.au3>
$oIE = _IECreate()
_IENavigate($oIE, "http://www.maidmarian.com/MOONBASE.htm")

Dale

Edited by DaleHohm

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...