Jump to content
Macro Express Forums

macro doesn't work


oded
 Share

Recommended Posts

I get a lot of pdf documents from my bank - all of them protected with a password.

I've created a very simple macro which types the password + ENTER.

When I try to open the pdf I'm of course asked to type the password. I run the macro but nothing happens.

If I open notepad and run this macro it works flawlessly.

Why doesn't the macro work with the protected pdf document?

Thanks for any help.

 

Oded.

Link to comment
Share on other sites

I get a lot of pdf documents from my bank - all of them protected with a password.

I've created a very simple macro which types the password + ENTER.

When I try to open the pdf I'm of course asked to type the password. I run the macro but nothing happens.

If I open notepad and run this macro it works flawlessly.

Why doesn't the macro work with the protected pdf document?

Thanks for any help.

 

Oded.

 

Two suggestions:

Make sure the typing code is typing and isn't doing "paste". Should be a radio button option on the typing code.

 

Second would be to make sure the password screen has focus before typing. This can be done by putting a delay before the typing code or a "activate window"

 

Regards,

 

Don

Link to comment
Share on other sites

Don,

 

The typing code is typing. I've checked the radio button...

I've also made sure the password screen has focus before typing.

It looks like Samrae is right. If so, can this be somehow bypassed?

 

Thanks Don and Samrae for your answers. Much appreciated :)

 

Oded.

Link to comment
Share on other sites

1. Is the scope incorrectly set? If it's not already "Global," try changing it to that, or making it Window or Program specific.

 

2. Check that no other macro has the same activation as your login macro. You may have a conflict.

 

3. Change the way you send text to the PDF. Try typing out the text and pasting it. Try sending one character at a time. Capture the control, and then try sending the text directly to the control.

 

4. Try moving the mouse cursor to the insertion point, clicking or double clicking, and then typing or pasting the login info.

 

5. Try emptying the clipboard, assigning the password to the clipboard, and then pasting instead of typing it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...