Jump to content

Recommended Posts

Posted

Hi everyone! I am trying  to filter for a particular email and then I want to actually open it in outlook in order to simulate the action of reading the email. I want the outlook to actually open and click on a particular email. I have managed to make the filtering part and I cannot implement opening the outlook and clicking on the email. Can someone help me? This is the code I have so far for filtering the emails. How can I then open an email in the Outlook?

 

$oOutlook = _OL_Open()
If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF", "Error creating a connection to Outlook. @error = " & @error & ", @extended = " & @extended)

$aFolder = _OL_FolderAccess($oOutlook, "", $olFolderInbox)
If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF", "Error accessing Inbox. @error = " & @error & ", @extended = " & @extended)

$aItems = _OL_ItemFind($oOutlook, $aFolder[1], $olMail, "[Subject]= 'Order Status'", "", "", "", "EntryID,Subject" )

If IsArray($aItems) Then
    _ArrayDisplay($aItems, "OutlookEX UDF: _OL_ItemFind Example Script - Unread mails")
Else
    MsgBox(48, "OutlookEX UDF: _OL_ItemFind Example Script", "Could not find an unread mail. @error = " & @error & ", @extended: " & @extended)
EndIf

  • Developers
Posted

Moved to the appropriate AutoIt General Help and Support forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Moderation Team

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted
24 minutes ago, sgtkt said:

simulate the action of reading the email.

Why do you need to simulate reading this email? Why not just read it? That's what a mail-system is made for ;) 

If we know what you want to achieve (set the "mail read" property, "read" such a mail as soon as it arrives ...) we can suggest a solution.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Posted

I have to simulate reading the email by opening the outlook, pretending the user is on the pc and actually working but is actually absent. I know it sounds dump but I have tp simulate regular user activity such as reading emails in the absence of user so the machine will behave exactly as a user is working on it.

Posted

I need it for research purposes. I am researching how a user would respond to emails. Clicking the email, reading its content and after some Machine learning and NLP taking a decision if a user will reply, accept or ignore the email. I am trying to simulate such actions (replying, forwarding, ignoring the email) in a realistic way. I want to see the user behavior happening.

  • Developers
Posted
57 minutes ago, sgtkt said:

I need it for research purposes. I am researching how a user would respond to emails.

....  and why would you need a script for that as to me you need humans to understand how humans act while reading emails.
The purpose of a script is to simulate the human behavior and that in general is to "fool" somebody in thinking the work is being performed while doing other stuff.

So again: Why the requirement for the script?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

I want to simulate the following: 1) reading an email 2) makin a decision based on the email's context how I want to react (reply, forward, ignore) and performing the action. Instead of doing this programmatically I want to see the action happening. Not for fooling someone but but to show the results of decision making in a realistic manner towards automating email response.

  • Developers
Posted

Your story isn't very consequent here ....is it? 

3 hours ago, sgtkt said:

pretending the user is on the pc and actually working but is actually absent.

This means something totally different than creating an Email Auto-reply system! 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

The purpose of an agent is to simulate a user. An agent acts like a user and makes an automated decision (automatic email reply). I am trying to put things simple I don't know your academic background, but anyway if you think that you cannot answer you can consider the conversation done and close the topic. Thank you for your time.

  • Developers
Posted (edited)
30 minutes ago, sgtkt said:

I am trying to put things simple I don't know your academic background

Excuse me?  I don't know your education level nor your knowledge of the English language, but this statement basically  could mean that you are calling me I am stupid.
I would have thought my posts are pretty clear and worded proper, and you not been pretty clear so far other then trying to lecture me.

Either way: I am done with this conversation too, like your are suggesting in your last post and this topic will be closed until I have receive a well worded PM at at least academic level wording and comprehensive answer to my questions. 

Jos 

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Jos locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...