wjbzone Posted September 13, 2012 Report Share Posted September 13, 2012 Hello first post here. I have a problem with a macro I invoke while using Acrobat Pro X. I start the macro from a dialoge box called "Sign Document" inside Acrobat. The macro tabs thru the fields, enters a password, tabs again to the Sign Button: Text Type (simulate keystrokes) <TAB><TAB>password<TAB><TAB><TAB><TAB><TAB><TAB> The line above works. I then do a enter to click the button. Text Type (simulate keystrokes) <NUMENTER> The line above also works. It brings the "Save As" dialog box. Whith focus in the File Name field. Here is where I have a problem... I want to tab twice to the save button and click to save: Text Type (simulate keystrokes) <TAB><TAB><NUMENTER> For some reason the macro will not execute the above line. Focus stays in the File Name field in the "Save As" dialog box. I tried debuging using breakpoints and step, but when the "Save As" dialog box appears, the <TAB> macro commands do not work. I changed my scope to global. still does not work. I put a delay before the problem line (Delay:0.5 seconds) did not work. Any suggestions appreciated. Bill Quote Link to comment Share on other sites More sharing options...
wjbzone Posted September 13, 2012 Author Report Share Posted September 13, 2012 Got it fixed. I increased the delay time to 1.0 seconds and it is working. I upgraded from Acrobat 9 to 10. I cannot believe the changing they did to the keystrokes to activate commands. Quote Link to comment Share on other sites More sharing options...
acantor Posted September 13, 2012 Report Share Posted September 13, 2012 Instead of a delay, you might want to substiute a "wait for window title" command (Save As) for up to, say 3 seconds. Quote Link to comment Share on other sites More sharing options...
wjbzone Posted September 13, 2012 Author Report Share Posted September 13, 2012 Thanks for the wait for option. Quote Link to comment Share on other sites More sharing options...
Cory Posted September 19, 2012 Report Share Posted September 19, 2012 It's more efficient to use controls in this case. One of many benefits is that is you can use the control's readiness to control timing. This way you don't waste extra time on the delay. There is a good tutorial on controls either in the samples file in your MEP folder or on the website. I can't remember which. 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.