is it possible to add a new property to the connection-object where i can find an information about the localpath where a downloaded file has been written to?
I have to put the files to a DB and during download I dont know to which project the downloaded files belongs
With this information it would bee very easier to me, to assign the files to the right project and put them to the DB. At this time I must wait until the download is finished and check for Mapentries. It takes a lot of time.
Best Regards
Jo. A. Kim
[
id(0x000000C9)
]
HRESULT OnNewFile([in] long IID, [in] BSTR URL, [in] BSTR Filename, [in] BSTR MIME, [in] BSTR Referer, [in] long AbsLevel );
Best regards,
Oleg Chernavin
MP Staff
it would be perfect but this event do never raise!
myBase = new OE.MainOEClass();
myBase.OnNewFile+=new OE.IMainOEEvents_OnNewFileEventHandler(myBase_OnNewFile);
best regards
Jo A. Kim
Oleg.
if I try to assign the 'OnNewProject' event i get the exception
System.Runtime.InteropServices.ComTypes.IConnectionPoint.Advise(Object pUnkSink, Int32& pdwCookie)
bei OE.IMainOEEvents_EventProvider.add_OnNewProject(IMainOEEvents_OnNewProjectEventHandler )
the same accours with 'OnProjectSettingsChanged'
it happens with every event!
The first one I assing will be accepted and every following will generate an exception!
Oleg.
Oleg.
yes I do:
myBase.OnNewFile += new OE.IMainOEEvents_OnNewFileEventHandler(myBase_OnNewFile);
myBase.OnNewProject += new OE.IMainOEEvents_OnNewProjectEventHandler(myBase_OnNewProject);
myBase.OnProjectSettingsChanged += new OE.IMainOEEvents_OnProjectSettingsChangedEventHandler(myBase_OnProjectSettingsChanged);
Hi Oleg,
I just tryed the vb-sample which is included and also there no event ( I tryed 'OnNewFile') is raised!
But I have another problem:
I am not able to load the thumbernails from this site:
http://www.cdu-bw.de/service/bildergalerie
here the properties:
[Object]
OEVersion=Enterprise 4.7.0.2575
Type=0
IID=7193
Caption=http://www.cdu-bw.de/service/bildergalerie/
URL=http://www.cdu-bw.de/service/bildergalerie/
Lev=1000001
Weekday=257
LimTSize=10000
LimNumber=5000
LimTime=100
FMGroup=1
FTText.Exts=htmlhtmaspaspxjspstmstmlidcshtmlhtxtxttextxspxmlrxmlcfmwmlphpphp3
FTImages.Exts=gifjpgjpegtiftiffxbmfifbmppngipxjp2j2cj2kwbmplwf
FTVideo.Exts=mpgavianimpegmovflvfliflcvivrmramrvasfasxwmvm1vm2vvob
FTAudio.Exts=wavriffmp3midmp2m3uravocwmaape
FTArchive.Exts=ziparcgzzarjlhalayleirarcabtarpakacejarpdftgz
FTUDef.Exts=jscssssivbsdtdxslswfclass
FTText.B=ooxooo
FTImages.B=ooxooo
FTVideo.B=ooxooo
FTAudio.B=ooxooo
FTArchive.B=ooxooo
FTUDef.B=ooxooo
FTOther.B=ooxooo
FTSizes=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,3,0,3,0
RSrvsBx=1
RPathBx=1
RProt=127
LastStart=16:231:28:78:241:31:227:64:
LastEnd=185:26:79:80:241:31:227:64:
S200=111
SPar=69
SSav=111
SLast=200
SSiz=1121775
SMdf=60
LFiles=155
LSize=1121775
Flags=1
ImgDim=0,0,0,0
PrevURL=http://www.cdu-bw.de/service/bildergalerie/
ParseComplexScripts=True
Oleg.
http://www.metaproducts.com/download/betas/OEE2579.ZIP
Oleg.
Tank You,
but if You find time to see the bug with the events would be great.
Jo. A. Kim
Oleg.
Oleg,
this way seems not to be sure to scan the downloaded files.
Please look for the other solution raising events
Tanks
Jo A. Kim
>
> Oleg.
Hi Oleg,
Iam waiting to use the events.
When do You think, I can get a new update??
Best regards
jo A. Kim
Oleg.
Oleg.
Its ok!
How can I receive this message?
oe.exe /hWnd=4365866
and this window will get the WM_COPYDATA message. wParam will contain OE window handle, lParam - pointer to the CopyDataStruct. This structure contains text with the data regarding the file.
Oleg.
Hi Oleg,
I do not start OE. Using the OLE-interface I create a reference object, and do not need to check if OE is already running or not. Is there maybe another possibility to register the window handler? Maybe in the constructor?
best regards
Jo A. Kim
Oleg.
OK, I receive the data but ID is allways=0!!!
best regards
Jo A. Kim
Oleg.
It is the proper way to assign the data to the right project! Istnt it?
the solution with /hWnd does not work on a 64bit machine!
Please have a look for an universal solution!
Thanks
Jo A. Kim
Oleg.
here is the code
COPYDATASTRUCT CD =
(COPYDATASTRUCT)m.GetLParam(typeof(COPYDATASTRUCT));
byte[] B = new byte[CD.cbData];
IntPtr lpData = new IntPtr(CD.lpData);
System.Runtime.InteropServices.Marshal.Copy(lpData, B, 0, CD.cbData);
string strData = Encoding.Default.GetString(B);
the value of cbData is 0.
On a 32Bit system it works fine.
Oleg.
>
> Oleg.
I will check it, but it will take some time, because the customer has an x64 machine but me not!
best regards
Jo A. Kim
It works! I changed the COPYDATASTRUCT:
before:
struct COPYDATASTRUCT
{
public int dwData;
public int cbData;
public int lpData;
}
now:
struct COPYDATASTRUCT
{
public IntPtr dwData;
public int cbData;
public IntPtr lpData;
}
Oleg.
Oleg.
the WM_COPYDATA message do not notify me about all the files which I can find with the method 'GetMapEntry'. Why not? Is this correct? Iam not sure if the Message really notify my app about every(!!!) downloaded file. The projectproperty 'Modificationcheck' is 'OEMC_AllFiles '.
Best Regards
Jo A. Kim
Oleg.
Hi Oleg,
no, this is not the situation, because every time I start the OEE I delete all the projects (OE.OEDeleteOptions.OEDO_Project) and create the project again even to avoid something like this!
I have also another problem:
"Access violation at address 0072F8FF in module 'OE.EXE'. Read of address 6D2F3764."
What could it be?
Best regards
Jo A. kim
Oleg.
Jo A. Kim
Oleg.
Hi Oleg,
excuse the delay, but I was busy!
I have a small project wich downloads 130 files with this properties:
[Object]
OEVersion=Enterprise 4.7.0.2585
Type=0
IID=8121
Caption=Angela Merkel
URL=http://www.angela-merkel.de/
Lev=1000000
LimBTime=True
LimTSize=10000
LimNumber=5000
LimTime=180
FMGroup=1
FTText.Exts=aspaspxcfmhtmhtmlhtxidcjspphpphp3rxmlshtmlstmstmltexttxtwmlxmlxsp
FTImages.Exts=bmpfifgifipxidcjspj2cj2kjp2jpegjpglwfpngtiftiffwbmpxbm
FTVideo.Exts=aniasfasxaviflcfliflvm1vm2vmovmpegmpgramrmrvvivvobwmv
FTAudio.Exts=apem3umidmp2mp3rariffvocwavwma
FTArchive.Exts=acearcarjcabgzjarlayleilhapakpdfrartartgzzzip
FTUDef.Exts=classcssdtdjsssiswfvbsxsl
FTText.B=ooxooo
FTImages.B=ooxooo
FTVideo.B=ooxooo
FTAudio.B=ooxooo
FTArchive.B=ooxooo
FTUDef.B=ooxooo
FTOther.B=ooxooo
FTSizes=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,3,0,3,0
RSrvsBx=1
RProt=-1
LastStart=132:106:171:105:139:35:227:64:
LastEnd=245:43:216:112:139:35:227:64:
S200=130
SPar=74
SSav=130
SLast=200
SSiz=68088371
LFiles=130
LSize=68088371
ApplyAllSubsts=True
ImgDim=0,0,0,0
PrevURL=http://www.angela-merkel.de/
ParseComplexScripts=True
ConvertRSS=True
before I start the download, I delete the projet, so I am sure the mapentries are cleared!
OE.OEFolder fo = myBase.GetFolder();
myBase.Delete(OE.OEDeleteOptions.OEDO_Project);
myBase = fo.AddProject();
WriteProperties();
I did 2 downloads.
After the downloads I compare the mapentries and the list I get over WM_COPY.
The first download was OK!
After the second download I found a Mapentry ('www.angela-merkel.de\images\politik_aktuelles.jpg'), which I did not receive over WM_COPY!
For me, it could be OK to compare both lists after download! But is the Mapentries-List really complete? I am afraid, if I would compare the Mapentries with another list, I would again get a difference!
I put the files to a DB and I must get the complete list of the downloaded files absolutely reliable!
Best Regards
Jo A. Kim
I don't think that messages may be lost - the speed of Windows messages is anyway much higher than you download data. In any case, Map will contain the most complete information about downloaded files.
Oleg.
Hi Oleg,
I will also read the Mapentries!
Other question:
How can I set the option 'Explore all possible subdirectories' via OLE?
best regards
Jo A. Kim
Oleg.
Hi Oleg
I installed the new version, but I do not find the option. How is it called?
An other problem:
Could You please have a look at this site: 'www.persil.de'
When downloading it, oee create files with such names:
));sanitize_seed_3pncu3gsfk4k84s8ws8gkgkk}sanitize_seed_3pncu3gsfk4k84s8ws8gkgkk}sanitize_seed_3pncu3gsfk4k84s8ws8gkgkk}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null
));sanitize_seed_3pncu3gsfk4k84s8ws8gkgkk}sanitize_seed_3pncu3gsfk4k84s8ws8gkgkk}sanitize_seed_3pncu3gsfk4k84s8ws8gkgkk}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null@parseInt(_29[0])_3A0;this.minor=_29[1]!=null@parseInt(_29[1])_3A0;this.rev=_29[2]!=null@parseInt(_29[2])_01C318D227
parseInt(_29[0])_3A0;this.minor=_29[1]!=null@parseInt(_29[1])_3A0;this.rev=_29[2]!=null@parseInt(_29[2])_3A0;};deconcept.PlayerVersion.prototype.versi0E763412DF
Shockwave Flash -1;Adobe Acrobat 6;Adobe SVG Viewer;Java Plug-in 1.4;RealPlayer(tm);RealPlayer(tm) G2;RealJukebox IE Plugin;VRML Viewer 2.0;
Tank You and best regards
Jo A. Kim
> Hi Oleg
>
> I installed the new version, but I do not find the option. How is it called?
I found it: ExploreDirs (the new version was not loaded!)
>
> An other problem:
>
> Could You please have a look at this site: 'www.persil.de'
> When downloading it, oee create files with such names:
>
> ));sanitize_seed_3pncu3gsfk4k84s8ws8gkgkk}sanitize_seed_3pncu3gsfk4k84s8ws8gkgkk}sanitize_seed_3pncu3gsfk4k84s8ws8gkgkk}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null
>
> ));sanitize_seed_3pncu3gsfk4k84s8ws8gkgkk}sanitize_seed_3pncu3gsfk4k84s8ws8gkgkk}sanitize_seed_3pncu3gsfk4k84s8ws8gkgkk}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null@parseInt(_29[0])_3A0;this.minor=_29[1]!=null@parseInt(_29[1])_3A0;this.rev=_29[2]!=null@parseInt(_29[2])_01C318D227
>
> parseInt(_29[0])_3A0;this.minor=_29[1]!=null@parseInt(_29[1])_3A0;this.rev=_29[2]!=null@parseInt(_29[2])_3A0;};deconcept.PlayerVersion.prototype.versi0E763412DF
>
> Shockwave Flash -1;Adobe Acrobat 6;Adobe SVG Viewer;Java Plug-in 1.4;RealPlayer(tm);RealPlayer(tm) G2;RealJukebox IE Plugin;VRML Viewer 2.0;
>
> Tank You and best regards
> Jo A. Kim
Oleg.
Oleg.
Have You a new update?
Jo A. Kim
http://www.metaproducts.com/download/betas/OEE2597.ZIP
Oleg.
Thank You for the new update, but it stills does not work. Downloading the same site oee saves such files:
umentElement.clientHeight){et_iw=document.documentElement.c
Shockwave Flash -1;Adobe Acrobat 6;Adobe SVG Viewer;Java Plug-in 1.4;RealPlayer(tm);RealPlayer(tm) G2;RealJukebox IE Plugin;VRML Viewer 2.0;
QuickTimeCheckObject.QuickTimeCheck.1
this is only a small demonstration. There are a lot of such filenames
Please have a look on it.
Thank You
Best regards
Jo A. Kim
In any case, if there are many invalid files that look the same, I will add code to skip them.
Oleg.
Hi Oleg,
Do You have a solution fpr this problem?
Now I get a lot of(!) "Access violation at address 00732443 in module 'OE.EXE'. Read of address 6F706D99."
Maybe it could allready be helpfull, if you do not make an error message which must be quited (the user must click the OK-Button), but only put a messsage into the system event log.
In the log file no no entry has been done!
Hope You can help!
best regards
Jo A. Kim
>
> I have also another problem:
> "Access violation at address 0072F8FF in module 'OE.EXE'. Read of address 6D2F3764."
>
> What could it be?
>
> Best regards
> Jo A. kim
Oleg.
>
> Oleg.
when will You do it?
Jo A. Kim
>
> oe.exe /hWnd=4365866
>
> and this window will get the WM_COPYDATA message. wParam will contain OE window handle, lParam - pointer to the CopyDataStruct. This structure contains text with the data regarding the file.
>
> Oleg.
Hi Oleg,
When downloading a project OEE creats some files named default.htm. Is it possible to notify the creation of this files in the same way like downloaded files (WM_COPYDATA)
Tanks
Jo A. Kim
Oleg.
>
> Oleg.
I did it and on this page seems to be OK. But when I download http://www.deutschepost.de/ I get no file default.htm. What is wrong?
Oleg.
Oleg.
>
> Oleg.
Yes there is no one url more!
Oleg do You have an idea how to load and display(!!!) the flash on this site: http://www.vfb-stuttgart.de/de/
Tanks
Jo A. Kim
Oleg.
>
> Oleg.
I already used autosave without success!
Jo A. kim
Oleg.
Oleg.