How to check if bank data is still open

Post Reply
Jonathan Hodder
Posts: 77
Joined: Sun Aug 26, 2007 11:53 pm

How to check if bank data is still open

Post by Jonathan Hodder »

Hi everyone,

I know this question has been answered before but I can't find it in this forum!

Here is the scenario.
The user enters financial info into my program.
Sooner or later the user needs more information from their bank.
I allow them to open their Bank URL with my program and browse their data.
I am using Shellexecute(), and to do this, the user selects their bank web address from a list in the program.
Once the browser (in this case its likely to be i explorer) has been open I have no way of telling
when the user has closed it down.
I don't want it left open when the user exits my program!
The bank site does time out when not in use but the data is still displayed on the browser.
Can anyone tell me how to obtain a list (array) of all open browsing windows
and then how to identify a particular window and close it down?

Your help would be appreciated.
Jonathan Hodder
Posts: 77
Joined: Sun Aug 26, 2007 11:53 pm

Re: How to check if bank data is still open

Post by Jonathan Hodder »

I guess this was this put into the 'to-hard basket' by the experts on this site.

Here is a solution which I think i'll go with.
I decided to go down the path of loading iexplorer as OLE or active-x as the latest terminology puts it.

Here is an example I tested which opens an MDI window able to be closed and closes with the application.

Code: Select all

   DEFINE WINDOW oWndChild MDICHILD OF oWnd
   oActiveX = TActiveX():New( oWndChild, "Shell.Explorer" )
   oWndChild:oClient = oActiveX // To fill the entire window surface
   oWndChild:Resize()
  //  oActiveX:Do( "Navigate2", "http://www.fivetechsoft.com" )
   oActiveX:Do( "Navigate2", ::aBanks[::nWebSite,1])
 
All the best 8)
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Re: How to check if bank data is still open

Post by hua »

This thread could be helpful to you Jonathan - http://forums.fivetechsupport.com/viewt ... =3&t=18572

HTH
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
Post Reply