Jump to content

_IEAction ($oIE, "printdefault") Not Working Sometime.


Recommended Posts

17 hours ago, Juvigy said:

When you hover the mouse over the icon you can see on which line of code it is. So on which line is it hanging?

My Full code is : 

#include <IE.au3>
#include <MsgBoxConstants.au3>

Opt("TrayAutoPause",0)
HotKeySet("{ESC}", "Quit")

Func Quit()
    Exit
 EndFunc
$oIE = _IEAttach ("Gujarat PDS Shop")
_IELoadWait($oIE)
$body = _IEBodyReadHTML($oIE)
If StringInStr($body, "Bill Details) Then
$Dbillreceiptdetails = _IEGetObjById($oIE, "billreceiptdetails")
$Dbillreceiptdetails.RemoveNode(True)
$DitemgridDetails = _IEGetObjById($oIE, "itemgridDetails")
$DitemgridDetails.RemoveNode(True)
_IEAction ($oIE, "printdefault")
_IEAction(_IEGetObjById($oIE,"lnkbill"),"click")
WinWait("Select a filename to write into")
WinActivate("Select a filename to write into")
endif
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...