I am trying to resize a bunch of pdfs by printing them into a different size sheet, but I keep running into problems with the flow trying to focus on the print windows or sending keys or even just clicking on the file menu.
Everything runs fine on the first file, then on the 2nd file it can open and click on all the page setups to make sure the resize is right and Print to PDFs. After the flow click the print button, it has issues focusing on the Save As window and I have to create a subflow for PAD to be able to focus on that Save As window for the 2nd PDF.
the first UI selector is like this:
> window[Class="#32770"][Name="Save Print Output As"] > pane[Class="DUIViewWndClassName"] > combobox[Class="AppControlHost"][Id="FileNameControlHost"] > edit[Class="Edit"]
and the 2nd UI selector is this:
> window[Class="#32770"][Name="Save Print Output As"] > pane[Class="DUIViewWndClassName"] > pane[Class="DirectUIHWND"][Name="Explorer Pane"] > pane[Class="FloatNotifySink"]:eq(0) > combobox[Class="ComboBox"][Name="File name:"] > edit[Class="Edit"][Name="File name:"]
I am not sure why there is a different but I cannot figure out how to modify either 1 of the UI selector to make it work for multiple files.
Same thing when I try to close down the pdf file..... on the 2nd pdf file when I click on File > close, PAD was able to click on File to open the file menu, but it failed to close on Close PDF like on the 1st pdf file for some reason....
any idea how I can modify the UI selector to make it more "universal" ?