You can supply the password via the OnPasswordError event without user intervention. If you set unattended those dialogs should stop - you then 'filter' the messages from OnZipMessage to display anything the user needs to know (most cases not much). You can also intercept the Dialogs via the OnZipDialog event to use your own dialogs where you think they are needed, ignoring or supplying set answers for the rest. Thousands of years ago I started out as on assembly moved to Forth programmer, then moved to C/C++ and now Delphi but ZipMaster was not created by me - I only try to maintain and update it. - Russell Peters -----Original Message----- From: delphizip-bounce@xxxxxxxxxxxxx [mailto:delphizip-bounce@xxxxxxxxxxxxx] On Behalf Of Randall Sell Sent: Wednesday, February 07, 2007 3:09 PM To: delphizip@xxxxxxxxxxxxx Subject: [delphizip] Re: more on passwords... Importance: High OnPasswordError does give me some level of control - but if you do the pwsAbort - it will be followed by a string of error dialogs. "User cancelled operation" etc. Even if you raise sysutils.abort, you surface that in a dialog. That is just not right. You use abort to "silently" stop things. Not so silent with ZipMaster. What has me more worried is that I have Verbose set to false. Lord knows what it would have to say if I set Verbose to true :) But I don't actually want to prompt the user at all for a PW. The software knows the PW. What I'd like it to do is simply show a message like "Software does not pair with file, please update your software". and that's it - no more error messages. That is not so easy. try it. I get the feeling that at the heart of ZipMaster - there is a C programmer, not a Delphi programmer. cheers -randall "R.Peters" <russellpeters@xxxxxxxxxxx> wrote: I am not sure what your problem is with the OnPasswordError event because, in theory, it gives you the opportunity to supply a password, skip extraction of the file or abort the process without the 'user' needing to know anything. I do see part of your problem - cannot do unattended encrypt without password - I now allow that if OnPasswordError event is used. Unfortunately testing revealed a slight dll problem - trace reveals the used password so I must make a few more changes. It is now about 01:00 GMT and the updates should be available in a few hours (anyone's time). - Russell Peters -----Original Message----- From: delphizip-bounce@xxxxxxxxxxxxx [mailto:delphizip-bounce@xxxxxxxxxxxxx] On Behalf Of Randall Sell Sent: Tuesday, February 06, 2007 11:44 PM To: delphizip@xxxxxxxxxxxxx Subject: [delphizip] more on passwords... Importance: High Well, there must be an easier way... Now that I have encrypted zips, it is easy to apply them via the password property. My problem is the lack of control when the password is not correct. I can obviously write code in the OnPasswordError and show my message, but I get all sorts of cascading messages for ZipMaster. I don't really want the user to know (or do they care) that it is password protected. The only way I can sort out is to set Unattended to true. But obviously if real things go wrong then, I wouldn't know so that's no good. Seems to me there should be an OnError event. I know I can use OnMessage - but that is triggered for more then just errors. Even so, I can't seem to trap an error specifically for the password. It gives GE_Unknown. If I set Unattended to true, it will give PW_UnatExtPWMiss - but my solution is starting to look like a hack. Surely there must be an eloquent solution? cheers -randall --------------------------------- It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. ----------- To unsubscribe from this list, send an empty e-mail message to: delphizip-request@xxxxxxxxxxxxx and put the word unsubscribe in the subject. ----------- To unsubscribe from this list, send an empty e-mail message to: delphizip-request@xxxxxxxxxxxxx and put the word unsubscribe in the subject. --------------------------------- 8:00? 8:25? 8:40? Find a flick in no time with theYahoo! Search movie showtime shortcut. ----------- To unsubscribe from this list, send an empty e-mail message to: delphizip-request@xxxxxxxxxxxxx and put the word unsubscribe in the subject. ----------- To unsubscribe from this list, send an empty e-mail message to: delphizip-request@xxxxxxxxxxxxx and put the word unsubscribe in the subject.