Search found 38 matches

by ShubhamM
13 Nov 2017, 21:11
Forum: Ask for Help (v1)
Topic: COM Outlook Events
Replies: 26
Views: 5464

Re: COM Outlook Events

I think I know the solution to my problem. I'll give it a go once I have access to a computer. Thanks for your help thus far!
by ShubhamM
13 Nov 2017, 21:00
Forum: Ask for Help (v1)
Topic: COM Outlook Events
Replies: 26
Views: 5464

Re: COM Outlook Events

Hey, FG, I used .SenderEmailAddress but it still returns the exchange server string. How do I modify this to retrieve the email address itself, without the Exchange Server address? Also, this question above is not for sent emails but rather the ones I receive. In any case, I tried to use the followi...
by ShubhamM
13 Nov 2017, 13:59
Forum: Ask for Help (v1)
Topic: COM Outlook Events
Replies: 26
Views: 5464

Re: COM Outlook Events

This worked!! Thank so much! One small follow-up as this only covers the recipients, how do I obtain the same for the sender (who the email is from)? Also, for the EventApp_ItemSend(Outlook_Item) [Item Send outlook event], I tried to save the email via Outlook_Item.SaveAs(Email_To_Save) but the emai...
by ShubhamM
11 Nov 2017, 23:29
Forum: Ask for Help (v1)
Topic: Incorrect Return value for .creationtime
Replies: 1
Views: 417

Re: Incorrect Return value for .creationtime

I realized I can just use format time for an email I'm just about to send anyways so never mind on that part. However, can anyone identify the .SenderName for the recipient version above? .recipients only includes people the email is sent to and those cc'ed. How do I do the same for who it's from in...
by ShubhamM
11 Nov 2017, 20:53
Forum: Ask for Help (v1)
Topic: Incorrect Return value for .creationtime
Replies: 1
Views: 417

Incorrect Return value for .creationtime

Hello, Thanks to FanaticGuru for much of this code but I am finding that "new_email_date_time := Outlook_Item.creationtime" has been returning "1/1/4501" consistently when I use the ItemSend Outlook Event: global Outlook_Application := ComObjActive("Outlook.Application") ComObjConnect(Outlook_Applic...
by ShubhamM
11 Nov 2017, 13:35
Forum: Ask for Help (v1)
Topic: Passing a variable into Event Function
Replies: 1
Views: 465

Re: Passing a variable into Event Function

I'm a moron --> Please ignore the above [Can't delete posts I realize]. I simply shouldn't have added in "Test Variable".Thanks!
by ShubhamM
11 Nov 2017, 13:32
Forum: Ask for Help (v1)
Topic: Passing a variable into Event Function
Replies: 1
Views: 465

Passing a variable into Event Function

Hello, All, I am trying to use pre-defined variables and pass them into for use in an event. I have much of the following code thanks to @FanaticGuru but I still cannot figure out how to pass the variable in to the event function: global Test_Variable := "Chicken Wings" #persistent global Outlook_Ap...
by ShubhamM
10 Nov 2017, 20:29
Forum: Ask for Help (v1)
Topic: COM Outlook Events
Replies: 26
Views: 5464

Re: COM Outlook Events

lol, tbh, I'm a complete noob at this form as I just joined a couple days ago, so I'm not entirely sure how to add the image, even with "" (don't know how to properly give the address in this case) but this is exactly what the string returns when I try to run the code on an active email on outlook; ...
by ShubhamM
10 Nov 2017, 20:08
Forum: Ask for Help (v1)
Topic: COM Outlook Events
Replies: 26
Views: 5464

Re: COM Outlook Events

I'll try resending the image when I'm home (on the phone atm)
by ShubhamM
10 Nov 2017, 20:02
Forum: Ask for Help (v1)
Topic: COM Outlook Events
Replies: 26
Views: 5464

Re: COM Outlook Events

Hey, Damn, I gotta say, I was really going that it would allow me to do that. The problem that I'm already setting these variables as global originally but manipulating them by calling them through functions and a subsequent subroutine. Any way to retrieve these variables as global and then enter th...
by ShubhamM
10 Nov 2017, 17:34
Forum: Ask for Help (v1)
Topic: COM Outlook Events
Replies: 26
Views: 5464

Re: COM Outlook Events

Sorry, I was referring to this code:

Code: Select all

F12::
	olApp := ComObjActive("Outlook.Application")
	olEmail := olApp.ActiveWindow.CurrentItem	; Expects an Email to be open
	for olRecipient in olEmail.Recipients
		MsgBox % olRecipient.Address
return
by ShubhamM
10 Nov 2017, 17:32
Forum: Ask for Help (v1)
Topic: COM Outlook Events
Replies: 26
Views: 5464

Re: COM Outlook Events

Hey, There, So most things worked without a hitch but I have encountered the following few problems; For the new received/sent emails, I need to use another value(string) from another function that I've been using. That value is passed through function to function and I need to use that variable. Ho...
by ShubhamM
10 Nov 2017, 14:59
Forum: Ask for Help (v1)
Topic: COM Outlook Events
Replies: 26
Views: 5464

Re: COM Outlook Events

You, sir, are brilliant. I appreciate this so much! I'll give it a go once I'm back at the computer and post again if I run into more problems.

Thanks again!!
by ShubhamM
10 Nov 2017, 14:26
Forum: Ask for Help (v1)
Topic: COM Outlook Events
Replies: 26
Views: 5464

Re: COM Outlook Events

Hey, FG, I read that link before but I remain a little puzzled. Overall, I now want the following altogether: 1. In the event that an email is received at anytime, I am able to perform actions based on this exact email's contents such as to, from, subject, and cc. 2. In the event that an email is se...
by ShubhamM
10 Nov 2017, 12:29
Forum: Ask for Help (v1)
Topic: COM Outlook Events
Replies: 26
Views: 5464

Re: COM Outlook Events

Hey there, JB. Thanks a lot for your help! However, I noticed this is for when emails are received. How do I modify this for when emails are sent, while keeping the contents of the email such as to, from, cc, and subject line? In addition, would you be able to assist on my other question: I want to ...
by ShubhamM
09 Nov 2017, 17:37
Forum: Ask for Help (v1)
Topic: COM Outlook Events
Replies: 26
Views: 5464

COM Outlook Events

Hello, I'm trying to get started with events but I'm having a rough time figuring out. I want to create a code such that, anytime the autohotkey script is running, I am able to retrieve the contents of an email that I have just sent and perform actions once the email is sent. This is what I have so ...
by ShubhamM
09 Nov 2017, 12:31
Forum: Ask for Help (v1)
Topic: Create a loop for all Outlook items
Replies: 2
Views: 762

Re: Create a loop for all Outlook items

Thanks so much! I already cannot thank you enough. However, I do have a couple of follow-ups that I was hoping you could also address: - When retrieving .SenderName, .To, and .CC information from outlook files, sometimes only the full name shows instead of the email address overall. I would like to ...
by ShubhamM
08 Nov 2017, 21:52
Forum: Ask for Help (v1)
Topic: Create a loop for all Outlook items
Replies: 2
Views: 762

Create a loop for all Outlook items

Hi, everyone! I'm completely new here but I have a question that I would really appreciate to get an answer to: I want to create a code that allows me to save all of the emails I received in my day in Outlook. I understand how to do this for one active email once it's open but I struggle to do this ...

Go to advanced search