i want to open URL in default browser...
but it should be strictly minimized no focus on load
Printable View
i want to open URL in default browser...
but it should be strictly minimized no focus on load
Quote:
Originally Posted by vbPoet
VB Code:
Public 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, "http://www.vbforums.com", vbNullString, "C:\", 3
:)Quote:
Originally Posted by allAPI.net
Cheers,
RyanJ
hmm not ..
minimized means .... do not display it in background..
just open browser and minimize it to taskbar silently ...
Quote:
Originally Posted by vbPoet
Then try this one:Quote:
Originally Posted by AllAPI.net
VB Code:
Private Const SW_MINIMIZE As Long = 6
Cheers,
RyanJ
i have already tried it before ...
but not quite right for putting browser on taskbar silently without displaying anywhere on screen
Why do you want to do this?
I dont see why you would need to open up a webpage and hide it from the user?
:) NO it will not be hiddenQuote:
Originally Posted by Pino
it will be placed on taskbar ...
and y i want to do this is not to disturb user .. so that he can open number of selected URL at one time and open and view them after opening all of them ..
if i wanna HIDE it from user ..
i can do it by using CreateObject ....
but i want to place on taskbar.....
One of these two? None of them work for me, cos I'm using Fx with tabs, but they may work with IE.
VB Code:
Private Const SW_SHOWMINIMIZED As Long = 2 Private Const SW_SHOWNOACTIVATE As Long = 4
If your using IE then the SW_MINAMIZE one should have worked fine.Quote:
Originally Posted by penagate
Again, I cannot check because I am using FF also.
Cheers,
RyanJ
Actually these arguments are not working .....
i want that in default browser should open URL and it should kept minimized...
IT SHOULD BE MINIMIZED...
Did you try VbHide?
where ...? and how ..
i m using .. ShellExecute...
and one other point ... that is i m not HIDING i want to MINIMIZE.
Actually i just want to open URL and minimize it to taskbar ....
I couldn't get it to work using ShellExecute, but if you will settle for Internet Explorer, you can shell it, and hide it.
VB Code:
Option Explicit Private Sub Form_Load() Shell "\program files\internet explorer\iexplore.exe www.msn.com", vbMinimizedNoFocus End Sub
vbMinimizedNoFocus may also work with shellexecute. I didn't try it. :wave:
hmm absolutely working fine.
but i also want to know which browser is set to default....
so that it could be opened .... :wave:
ShellExecuting the URL will automatically open it in the default browser.
Oops but it will not minimize as i want as DG's code work
so is there any other way .......
OK tell me simply how to know which is default browser ....?
Whichever one the user has checked off to be his default browser will open.
Nops ... it will open in ShellExecute case
but i want to use Shell ..
Then you will have to know which browser the user has. IE is a safe bet, but if he wants to use Fx, then you can't know it. Thats why I use ShellExecute.
It knows the users choice for you.
hmm but ShellExecute ...is not able to minimize to taskbar as Shell do...
Sure it does. You just need to use the right flag.
http://www.mentalis.org/apilist/ShellExecute.shtml
Oh no DG...
when i use ShellExecute it does not place it "Minimized" on taskbar as Shell do ....
did you try all of the options? i could have sworn that one worked.
hmm i have tried all ...
It is very strange. I tried opening a text file, and it works correctly using
SW_SHOWMINIMIZED, but it wouldn't minimize Fx. Let's see if anyone else has any comments.
= 4VB Code:
Private Const SW_SHOWMINIMIZED As Long = 2 Private Const SW_SHOWNOACTIVATE As Long
erm..shouldnt Shell "start http://google.com", vbminimized work? If it doesnt use comspec.
No nothing minimises Fx for me either.Quote:
Originally Posted by dglienna