O
Ophyl
I have invested a great deal of time trying to make VBA
work with the MSN Photo Upload Control embedded on a
Microsoft Webpage under IE6. This functionality is
needed to automate photo uploads to a bCommerce site.
Little or no information is available to help people
using the control. Consequently, I loaded the control
under the Activex Test Container to see available
properties and methods. Nothing useful that I could see.
I used Spy to find the window names/class names for the
child windows: a 'Windows Explorer-like' window and a
photo list selector window. Using Win32 functionality I
can find the windows handles and then post mouse or key
messages to the windows. I have managed to send keys via
a 'SendKeys-like' Win32 keyevent interface to simulate
the UP, DOWN, RIGHT, and SUBTRACT keys in order to
navigate the hierarchical directory tree. Unfortunately
this method is very unreliable.
Even though it appears (via highlighting) that I have set
focus to the Windows Explorer dir list, key messages are
being ignored, unless and until I physically click inside
it's client windows area. I have used Spy to verify that
my messages are posted to the window and that messages
look the same with or without the initial mouse click.
But once I click inside the window (after the webpage
loads), key messages are processed properly.
I have included AppActivated for the IE App, and used
SetFocus on the child window and IsWindowEnabled shows
that it should work.
If someone would tell me where this control keeps it's
last folder visited information - I could overwrite it
with my folder information and improve the reliability.
Any ideas for how to work with the MSN Photo Upload
Control embedded in a Microsoft web page would be greatly
appreciated.
Thanks
Ophyl
work with the MSN Photo Upload Control embedded on a
Microsoft Webpage under IE6. This functionality is
needed to automate photo uploads to a bCommerce site.
Little or no information is available to help people
using the control. Consequently, I loaded the control
under the Activex Test Container to see available
properties and methods. Nothing useful that I could see.
I used Spy to find the window names/class names for the
child windows: a 'Windows Explorer-like' window and a
photo list selector window. Using Win32 functionality I
can find the windows handles and then post mouse or key
messages to the windows. I have managed to send keys via
a 'SendKeys-like' Win32 keyevent interface to simulate
the UP, DOWN, RIGHT, and SUBTRACT keys in order to
navigate the hierarchical directory tree. Unfortunately
this method is very unreliable.
Even though it appears (via highlighting) that I have set
focus to the Windows Explorer dir list, key messages are
being ignored, unless and until I physically click inside
it's client windows area. I have used Spy to verify that
my messages are posted to the window and that messages
look the same with or without the initial mouse click.
But once I click inside the window (after the webpage
loads), key messages are processed properly.
I have included AppActivated for the IE App, and used
SetFocus on the child window and IsWindowEnabled shows
that it should work.
If someone would tell me where this control keeps it's
last folder visited information - I could overwrite it
with my folder information and improve the reliability.
Any ideas for how to work with the MSN Photo Upload
Control embedded in a Microsoft web page would be greatly
appreciated.
Thanks
Ophyl