PixelSearch, Abobe X Pro document opened in IE window
#1
Posted 10 May 2012 - 02:43 AM
#2
Posted 10 May 2012 - 08:04 AM

#3
Posted 11 May 2012 - 11:04 AM
Details:
Windows 7 with screen resolution at 1024x768
IE 9 with menu and favorite tool bars
Adobe Acrobat X Pro with the floating toolbar turned off under the internet tab and pdfs loaded into a IE window
Window maximized
Here is a sample program that is failing to find the color. If I program it with a while loop and I move the mouse near the color it functions. This color is in the print icon of the Adobe toolbar. Under Windows XP and earlier Adobe, IE versions have had no problem. The sample code is looking for the color in the print icon. I cannot understand why it will not function (find the color and have many times verified with autoinfo. Again, this is working with a color in the AA X Pro version. Anyone who has time see if they can locate a color on the toolbar. Thanking everyone in advance.
Attached Files
#4
Posted 11 May 2012 - 03:42 PM
Do You waiting for special pixel or do You want to click in PDF special position ?
Do You realy need to find Pixel ?
If I be know what you want to do maybe I can help ?
For example
I can help with
- clicking in Acrobat Reader opened in IE
- saving a PDF file opened in IE
- geting all text content from PDF file
Check my last post on the forum
Maybe this can help You
#5
Posted 11 May 2012 - 03:49 PM
#6
Posted 11 May 2012 - 03:59 PM
If not I try to check your problem in a few day.
Edited by mlipok, 11 May 2012 - 04:00 PM.
#7
Posted 12 May 2012 - 01:22 PM
I am ready for alternate suggessions. I used the pixel search method as some of the pdfs were huge and using the StatusbarGetText method would state Done but the screen would still be painting from the buffer and sendind the print command would be ignored. I did not want to use excessive sleep time.
This is my first return to this forum for a couple of years and am rusty to code and things have changed.
Looking for solution or better method to handle.
#8
Posted 12 May 2012 - 07:52 PM
opening once mail received and then doing a click on a pdf link.
how I guess that PDF
link in example is real
http://www.irs.gov/pub/irs-pdf/fw4.pdf
Can't you just download that PDF without clicking the link
step by step example
- reading URL from Email
- getting PDF file using InetGet function
- printing without opening ie. AcroRd32.exe /t "C:test.pdf" "servernameprintername"
#9
Posted 13 May 2012 - 02:02 AM
#10
Posted 13 May 2012 - 02:48 AM
if yes then try this
http://www.autoitscript.com/forum/topic/139752-solved-ie-pdf-saving-pdf-without-opening-file-save-dialog/page__view__findpost__p__984202
http://www.autoitscript.com/forum/topic/139752-solved-ie-pdf-saving-pdf-without-opening-file-save-dialog/page__view__findpost__p__984215
to locate PDF on your Drive
after that you bo able to print PDF using Run or ShellExecute:
ie.
AcroRd32.exe /t "C:\test.pdf" "\\servername\printername"
#11
Posted 15 May 2012 - 01:53 AM
$Handle = WinGetHandle("[Class:IEFrame]")
$hCtrl = ControlGetHandle($Handle,"","[Class:AVL_AVView]")
I now can issue my shortcuts for printing and saving of documents.
Thanks again everyone.
#12
Posted 16 May 2012 - 07:52 PM
and try this
$s_printer_name = 'HP LaserJet 1020' $string = WinGetText('http://www.irs.gov/pub/irs-pdf/fw4.pdf - Windows Internet Explorer', 'AVToolBarHostView') $ar_file = StringRegExp($string, '(?i).*Temporary Internet Files.*\.pdf', 3) If IsArray($ar_file) Then $f_pdf = $ar_file[0] ;Run('"c:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe" /t "' & $f_pdf & '" ', "c:\Program Files\Adobe\Reader 9.0\Reader\", @SW_MAXIMIZE ) $program = '"c:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe" /t "' & $f_pdf & '" "' & $s_printer_name & '"' ConsoleWrite($program & @CRLF) Run($program, "c:\Program Files\Adobe\Reader 9.0\Reader\", @SW_MAXIMIZE) EndIf
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





