Jump to content

Recommended Posts

Posted (edited)

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=
  • 1 year later...
Posted

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.

Posted

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
Posted

$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\""

Posted

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

hahaha nope i didn't even notice that! shows how long I have been in these forums :)

oh well.

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...