Hi guys, immaking automattic printing of an IExplorer page.
I tried using _IELoadWait function but its not working for me because i do not create window, it pups out.
My script is waiting for window to exist and then it sends CTRL+P to print.
It works fine but page is not loaded 100% so it prints blank page or openens wrong printing dialogue.
Here is a piece that is used to detect window as soon as it pops on the screen.
If WinExists ($LabelFromINI) Then WinActivate ($LabelFromINI) Send("^p") ;send PRINT shortcut WinWaitActive ("Print","",2) ;wait for PRITN dialog to apear $LabelDownCount = GUICtrlRead ($ArrowDownToLabelPrinter) ;returns # of times to press arrow DOWN $LabelUpCount = GUICtrlRead ($ArrowUpToLabelPrinter);returns # of times to press arrow UP If $LabelDownCount > 0 Then Send ("{DOWN " & $LabelDownCount & "}") If $LabelUpCount > 0 Then Send ("{UP " & $LabelUpCount & "}") Send ("{ENTER}") ;Press Enter to pritn using selected printer WinWaitClose ("Print") ;wait for PRINT dialog to close If GUICtrlRead ($AutoCloseLableWin) = $GUI_CHECKED Then WinClose ($LabelFromINI) ;Close printed page it set to autoclose If GUICtrlRead ($LabelCloseWaitCheckBox) = $GUI_CHECKED Then WinWaitClose ($LabelFromINI) ;Wait for uset to close printed page it set to manual EndIf
I hope my script make since and explanes why i cant use _IELoadWait
Perhaps i dont know how to use _IELoadWait correctly, please show me how.
Greatly appreciated to be in AUTOIT community.
Waiting for resolution all thanks to you.