= " & & ", = " & ) Access the Inbox Global $aFolder = _OL _FolderAccess ( $oOutlook, "", $olFolderInbox ) If 0 Then Exit MsgBox ( 16, "OutlookEX UDF", "Error accessing the Inbox. #AutoIt3Wrapper_AU3Check_Parameters= -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #AutoIt3Wrapper_AU3Check_Stop_OnWarning=Y #include Global $aAttachments Connect to Outlook Global $oOutlook = _OL _Open ( ) If 0 Then Exit MsgBox ( 16, "OutlookEX UDF", "Error opening connection to Outlook. Use _OL_ItemAttachmentSave to save the attachments of your mails.
#Autoit outlook read receipt plus#
_Excel_RangeWrite($oWorkbook, $oWorkbook.The following example gets all unread items with at least one attachment and writes the mail subject plus the name of all attachments to the Console. $oInputs = _IETagNameGetCollection($oIE, "input")
#Autoit outlook read receipt code#
Probably, $text_form1 = _IEGetObjById($oIE, "livesearch-interaction")įor debug it you can insert this code before _IEFormElementSetValue: ConsoleWrite("isObject:" & isObj($text_form1) & I found 3 problems.ġ) You didn't return to search page after end of iteration and the input object can't be found Ģ) You must get Input and Button object on the start of each iteration ģ) Exitloop must be on each If. The problem is in _IEFormElementSetValue function. I think this code is now complete the steps i have write down aboveīut i have an error when the script finish the first iteration I have updated the code with my final touches _Excel_RangeWrite($oWorkbook, $oWorkbook.Activesheet, "minor","C" & $y) _Excel_RangeWrite($oWorkbook, $oWorkbook.Activesheet, "moderate","C" & $y)ĮlseIf $oButtonn.classname = "status-category status-category-minor" Then _Excel_RangeWrite($oWorkbook, $oWorkbook.Activesheet, "major","C" & $y)ĮlseIf $oButtonn.classname = "status-category status-category-moderate" Then If $oButtonn.classname = "status-category status-category-major" Then $oButtonsa = _IETagnameGetCollection($oIE, "span") If StringLower($oInput.value) = "check for interactions" Then _IEFormElementSetValue($text_form1, $sResultb )
_IEFormElementSetValue($text_form1, $sResulta ) Global $sResultb = _Excel_RangeRead($oWorkbook, Default, 'B' & $y & ':B' & $y,1 ) Global $sResulta = _Excel_RangeRead($oWorkbook, Default, 'A' & $i & ':A' & $i,1 ) If StringLower($oInput.classname) = "input-button search-button" and _IEFormElementGetValue($oInput) Then it is an input $text_form1 = _IEGetObjById($oIE, "livesearch-interaction")
Local $oInputs = _IETagNameGetCollection($oIE, "input") $oWorkbook = _Excel_BookAttach($sWorkbook) Local $oWorkbook = _Excel_BookOpen($oExcel, $sWorkbook) Local $sWorkbook = "C:\Users\Aligaaly\Desktop\autoit\test\drugs.xlsx" I will also appreciate it if someone can help me with the correct keywords so that I can Google for examples and solutions. I will appreciate it if someone can correct/assist me with the bugs in my code. I am a beginner at autoit but I can do some scripting albeit with a lot of bugs. This must then write the result to column(c)
When I press 'Check For Interaction' the result of the next page must be extracted and return one of tree interactions: Here is a sample of my Excel sheet: column(A) Column(B) I must take the text of the two medicines from the Excel sheet and enter them on the website to check the interaction between them.
This link, checks for interaction between two medicines. I am trying to automate some repetitive work for getting results from a website,