Jump to content

Web site


=sinister=
 Share

Recommended Posts

hey w0uter, I want to go to a certain page, not the domain. Whenever I use your INetBrowse, it goes to the domain. Example:

I want to go to www.mydomain.com/page

and it goes to www.mydomain.com instead.

**never mind, it was just the domain and how it was setup**

Edited by =sinister=
Link to comment
Share on other sites

  • 1 year later...

how about this:

ShellExecute("http://www.google.com")

all this fuss and thats all you need. I tried it with multiple URL's and it seems to work fine- opens the default browser and everything. Let windows figure out which browser is the default, that is the easiest way! It is exactly the same as typing an address in the Run box by hitting Windows+r... so & symbols should work fine.

Link to comment
Share on other sites

how about this:

ShellExecute("http://www.google.com")

all this fuss and thats all you need. I tried it with multiple URL's and it seems to work fine- opens the default browser and everything. Let windows figure out which browser is the default, that is the easiest way! It is exactly the same as typing an address in the Run box by hitting Windows+r... so & symbols should work fine.

Might not be the solution if a new browser instance is required. That opens a new tab in my existing Firefox instance for me -- exactly what I like, but maybe not what everybody likes.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

$address = "iexplore.exe www.google.com"
Send("#r")
WinWaitActive("Run")
ControlSend("Run", "", 1001, $address)
ControlClick("Run", "", 1)

you can use the iexplore.exe and firefox.exe tags to denote which browser you wish to use... you can also check the default browser through the registry.

here are the locations where Windows stores default browser data:

@="FirefoxHTML"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.xht">

@="FirefoxHTML"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.xhtm]

@="FirefoxHTML"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.xhtml]

@="FirefoxHTML"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm]

@="FirefoxHTML"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.html]

@="FirefoxHTML"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FirefoxHTML\DefaultIcon]

@="C:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE,1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FirefoxHTML\shell\open\command]

@="C:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE -url \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ftp\DefaultIcon]

@="C:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE,1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ftp\shell\open\command]

@="C:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE -url \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\gopher\DefaultIcon]

@="C:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE,1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\gopher\shell\open\command]

@="C:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE -url \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\DefaultIcon]

@="C:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE,1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open\command]

@="C:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE -url \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\DefaultIcon]

@="C:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE,1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\command]

@="C:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE -url \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CHROME\DefaultIcon]

@="C:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE,1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CHROME\shell\open\command]

@="C:\\PROGRA~1\\MOZILL~1\\FIREFOX.EXE -url \"%1\""

Link to comment
Share on other sites

You chaps know you're answering a one year old thread?

IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]
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...