How to check if bank data is still open

How to check if bank data is still open

Postby Jonathan Hodder » Tue Oct 26, 2010 10:02 pm

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

Postby Jonathan Hodder » Thu Oct 28, 2010 10:28 pm

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  Expand view

   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)
Jonathan Hodder
 
Posts: 77
Joined: Sun Aug 26, 2007 11:53 pm

Re: How to check if bank data is still open

Postby hua » Fri Oct 29, 2010 2:12 am

This thread could be helpful to you Jonathan - viewtopic.php?f=3&t=18572

HTH
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1038
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 63 guests