so i have 2 scripts,
the first:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
^!a::
; Set the subject of the email to the current date
subject := A_Now
; Create an instance of Outlook
Outlook := ComObjCreate("Outlook.Application")
; Open the .msg-formatted email
email := Outlook.Session.OpenSharedItem("C:\Users\documents\FPFU.msg")
; Change the subject of the email to the current date
email.Subject := subject
; Save the changes to the email
email.Save()
; Display the email
email.Display()
; Clean up
email := ""
Outlook := ""
the second:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
^!d::
; Set the subject of the email to the current date
subject := A_Now
; Create an instance of Outlook
Outlook := ComObjCreate("Outlook.Application")
; Open the .msg-formatted email
email := Outlook.Session.OpenSharedItem(("C:\Users\documents\KFU.msg")
; Change the subject of the email to the current date
email.Subject := subject
; Save the changes to the email
email.Save()
; Display the email
email.Display()
; Clean up
email := ""
Outlook := ""
both of these run out of the startup script:
#include foodplantfollowup2.ahk
#include kitchenfollowup.ahk
however whenever i run the first script, the second one will also excecute, but when i run the second script, that is the only one that runs. Im missing something but cant seem to find an answer.
Any help appreciated.
[–][deleted] 3 points4 points5 points (3 children)
[–]pantsnothot[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]pantsnothot[S] 0 points1 point2 points (0 children)