Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by Wilder1626
at 2024-07-23 08:00:32
Point:500 Replies:5 POST_ID:829080USER_ID:11982
Topic:
Visual Basic Programming;;
Hi.
I would like to know how i can force the web link to open with Firefox and still leave IE as the default browser.
Is that possible?
Thanks for your help
I would like to know how i can force the web link to open with Firefox and still leave IE as the default browser.
Is that possible?
Thanks for your help
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long ShellExecute Me.hwnd, vbNullString, _ "www.google.ca", _ vbNullString, App.Path, SW_SHOWNORMAL 1:2:3:4:5:
Author: Wilder1626 replied at 2024-07-25 05:29:23
Thanks a lot for the help. This is working great.
Accepted Solution
Expert: Chris Watson replied at 2024-07-23 09:34:31
500 points EXCELLENT
I like Randy's suggestion for improving the robustness of the strategy.
It seems that the location of the Firefox executable is stored in the registry. The correct key is dependant upon a few things, including the version number of Firefox installed and the version of Windows in use.
For example, for Firefox 30 on Windows 7 (64-bit) the registry path is:
It seems that the location of the Firefox executable is stored in the registry. The correct key is dependant upon a few things, including the version number of Firefox installed and the version of Windows in use.
For example, for Firefox 30 on Windows 7 (64-bit) the registry path is:
HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMozillaMozilla Firefox30.0 (en-GB)MainPathToExe 1:
Expert: duncanb7 replied at 2024-07-23 08:18:42
it seems he want to get the handler of hwnd from firefox application as we did it for IE
Author, please write more about this if it is
Duncan
Author, please write more about this if it is
Duncan
Expert: Randy Poole replied at 2024-07-23 08:09:32
What Chris said is correct to a point, you would need to query the registry first to see where firefox is installed.
Expert: Chris Watson replied at 2024-07-23 08:08:18
Shell "C:Program Files (x86)Mozilla FirefoxFirefox.exe ""http://www.google.ca""", vbNormalFocus 1:
Provided that Firefox is installed in the standard location on a 64-bit PC this will open http://www.google.ca in Firefox without requiring changing the default browser. If Firefox is installed in a different location, update the path accordingly.