>i would like to bring to forefront an actual connection that is currently in the background.
>So let's say i have already made conection to 'https://this is my site.com/main.html' and it opens in a window smply called
>"This is my site - Windows Internet Explorer" as the title of the explorer window. Neither will actually appear in the forefront
>with the code below. Is there a way to open this secondary window? thanks k
>
>this is the code with the problems shown to the right or each solution
>#DEFINE SW_SHOWNORMAL 1
>lcUrl = "This is my site - Windows Internet Explorer" &&& this is the window name -- error not a file
>lcUrl = 'https://this is my site.com/main.html' &&& this is the window url conection --- makes the internet connection again so that i have two.
>
>oShell = Createobject("wscript.shell")
>oShell.Run(lcUrl)
>DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
> INTEGER hwnd, STRING lpVerb, STRING lpFile, ;
> STRING lpParameters, STRING lpDirectory, LONG nShowCmd
>ShellExecute(0, "Open", lcUrl, "", "", SW_SHOWNORMAL)
See if this is what you need:
oCollection = CreateObject( "Shell.Application" )
FOR ia=0 to oCollection.Windows.Count-1
WITH oCollection.Windows(ia)
?.FullNAme
iF "iexplore.exe"$LOWER(.FullNAme) and "window title fragment"$lower(.locationName)
?"Title: ", .locationName
?"URL: ", .LocationUrl
?"Type: ", .Type
?"Handle: ", .HWND
DECLARE INTEGER ShowWindow IN WIN32API ;
INTEGER hWnd, Integer nCmd
cnSW_MAXIMIZE = 3
ShowWindow(.hWnd, cnSW_MAXIMIZE)
EXIT
endif
ENDwith
ENDFOR
oCollection=.null.
RELEASE oCollection
Good Luck