Hey Guys,
I managed to shell internet explorer to a specific URL but:
a) it only shells to the taskbar, regardless of me trying to open it vbmaximised
b) I can't seem to move the window (I am using this article http://support.microsoft.com/kb/q242308/
to find the handle from the instance returned by the shell), but it won't move ?!?! (using movewindow, or setwindowpos).
Any help, very much appreicated !
ThanksCode:Dim hinst As Long ' Instance handle from Shell function. Dim hWndApp As Long ' Window handle from GetWinHandle. Dim buffer As String ' Holds caption of Window. Dim numChars As Integer ' Count of bytes returned. 'Still only hits the taskbar hinst = Shell("C:\Program Files\Internet Explorer\IEXPLORE.EXE www.google.ie", vbMaximizedFocus) 'search for handle hWndApp = GetWinHandle(hinst) If hWndApp <> 0 Then MoveWindow hWndApp, 12, 24, 3333, 222, 1 'Doesn't Work! DestroyWindow hWndApp End If
Chubby.




Reply With Quote