oded Posted September 29, 2011 Report Share Posted September 29, 2011 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. Quote Link to comment Share on other sites More sharing options...
Samrae Posted September 29, 2011 Report Share Posted September 29, 2011 Why doesn't the macro work with the protected pdf document? Some programs disable the keyboard hooks when asking for a password. This keeps key loggers and other bad software from capturing your password. But it also ignores keystrokes from Macro Express. Quote Link to comment Share on other sites More sharing options...
monpasdg Posted September 29, 2011 Report Share Posted September 29, 2011 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 Quote Link to comment Share on other sites More sharing options...
oded Posted September 29, 2011 Author Report Share Posted September 29, 2011 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. Quote Link to comment Share on other sites More sharing options...
acantor Posted October 3, 2011 Report Share Posted October 3, 2011 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.