I am trying to write an app that is similar to
Discover's/Citibank's/Amex's 'virtual creditcard'
desktop agents. The app has nothing to do with creditcards,
but I would like the program to have the following
features (in the same order of priority - meaning
I have listed the feaure 'i think' is easier to do
first). I am familiar with programming on win32
(mostly perl, some C++), html, http internals etc.
I am only looking for code snippets or general direction
on how I should solve this. Code snippets using
perl+Win32::GUI will be preferable, C++ next and the
last VB. ActiveX scripts are welcome if you can
add adequate explanation. Links to any SDK that
can do this is also welcome.
1. When the user double-clicks on the system-tray icon
of my program, it should be able to grab the URL of the
top-most IE window. Can I do it with Netscape/Mozilla too?
( I have made a sample in C++, but not sure if it will
work with any IE version - copied from a Delphi example
on the net)
://www.google.com/search?q=%22Grab+the+current+URL+from+IE%22
(I already know how to add an icon on the system tray)
2. If the program can be intelligent to 'popup' automatically
(without the user having to double-click on the tray), that
would be great too. I would assume we would have to have
a way to monitor each HTML page seen by IE and popup
when we find a match on a pattern.
3. Automatically fill one of the fields (of a form)
in the current browser page. Discover's deskshop
does this, Citibank's program uses drag-&-drop
instead. Any method is welcome. |