Hotkey to copy subject of email in Outlook

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
coder_chick
Posts: 235
Joined: 05 Nov 2015, 10:43

Re: Hotkey to copy subject of email in Outlook

10 Nov 2015, 10:19

Ok, thanks. Yeah, I'm still new to this coding. I'm all for looking at the documentation, but I don't always know where to look and sometimes struggle with it. I have learned a ton by seeing the examples and then going back to read up more. I will be taking a closer look at those pieces now. Thanks all!
♥ ❤ ❥ coder_chick ♥ ❤ ❥
Guest

Re: Hotkey to copy subject of email in Outlook

21 Feb 2017, 04:27

sinkfaze wrote:

Code: Select all

F1::
oApp := ComObjActive("Outlook.Application")	; Get Outlook
oExp := oApp.ActiveExplorer					; Get the ActiveExplorer.
oSel := oExp.Selection						; Get the selection.
oItem := oSel.Item(1)						; Get a selected item.
Subject := RegExReplace(oItem.subject,"^(?:RE|FW): ")
Send,^e ;shortcut to jump to search bar in Outlook
SendInput,"{Raw}%Subject%" ;sends subject to search bar in quotes
return
This only works in main Outlook windows, how to make it work in opened email?
anotherguest

Re: Hotkey to copy subject of email in Outlook

21 Feb 2017, 11:15

This only works in main Outlook windows, how to make it work in opened email?
If you look at the first reply... https://autohotkey.com/boards/viewtopic ... 323#p56323
Just change it so it doesn't use the clipboard and add the regex if you require that part.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Rohwedder and 124 guests