Sign in to follow this  
Followers 0
Crayfish

Request Assist: Convert ahk to autoit (Outlook email).

5 posts in this topic

;#### QC ####
;***********************************
;Opens new mail message in Outlook.
;***********************************
  ;Start and minimize Outlook if not already running
  IfWinNotExist, - Microsoft Outlook ahk_class rctrl_renwnd32, NUIDocumentWindow
  {
   Run OUTLOOK.EXE
   WinWait - Microsoft Outlook ahk_class rctrl_renwnd32, NUIDocumentWindow
   WinMinimize
  }
  ;launch new mail message
  Run OUTLOOK.EXE /c ipm.note
  WinGet, emptyMsgs, Count, Untitled - Message ahk_class rctrl_renwnd32
  If (emptyMsgs)
   Sleep, 250
  Else
   WinWait, Untitled - Message ahk_class rctrl_renwnd32
   SendInput, Johndoe@nowhere.com{TAB 2}{AltDown}u{Altup}Question/Attention Required {#}%WOStr%
   SendInput, {TAB}Work Order {#}%WOStr%{ENTER}
   SendInput, State: %tStates%  Vendor: %tVendors%{ENTER 3}
Return

Can anyone help me convert this into au3? Or if there a better alternative - please advise. I do need email to have signature and the only way I know it will include is send new mail through outlook.

Share this post


Link to post
Share on other sites



If you dont want to learn - try rentacoder.com.

If you want to learn and do it yourself - start with the help file for the basics and then move on to the Outlook UDF by Water.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

If you dont want to learn - try rentacoder.com.

If you want to learn and do it yourself - start with the help file for the basics and then move on to the Outlook UDF by Water.

It was a simple question, if you weren't willing to help, you should just post nothing like the other people on the forum. Why troll around support forum just to post that?

This is my first time with autoit. I won't judge the community base on your response.

Yes I know it a learning process everyone will eventually go through.

I actually make some progress myself and eventually I prolly can alone - but again - this is a community - it doesn't hurt to ask for help.

PS: I'm not waiting for your response and frankly please don't bother responding Juvigy

Opt("WinTextMatchMode", 2)   ;1=complete, 2=quick
Opt("WinTitleMatchMode", 2)  ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase
If NOT WinExists ("Microsoft Outlook", "") Then
;If NOT WinExists ("Message", "") Then
ShellExecute("OUTLOOK.EXE", "/c ipm.note", "", "",7)
;ElseIf WinExists ("Message", "") Then
     ;WinActivate("MESSAGE", "")
;EndIf
ElseIf WinExists ("Microsoft Outlook", "") Then
; If NOT WinExists ($handle, "") Then
; ShellExecute("OUTLOOK.EXE", "/c ipm.note", "", "",7)
; ElseIf WinExists ($handle, "") Then
; WinActivate($handle, "")
; EndIf
EndIf
Edited by Crayfish

Share this post


Link to post
Share on other sites

There is a better alternative - my OutlookEX UDF. For download please check my signature.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Hey Fish,

I tried to help you , but you didnt understand it and got offended by unknown for me resons.

PS.

"Not everyone who shits on you is your enemy and not everyone who gets you out of the shit is your friend."

"And when you're in deep shit, it's best to keep your mouth shut!"

Share this post


Link to post
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
Sign in to follow this  
Followers 0