Jump to content

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


Recommended Posts

;#### 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.

Link to comment
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.

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
Link to comment
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 2022-02-19 - Version 1.6.1.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 (NEW 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

 

Link to comment
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!"

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...