[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 211/287: Add send outlook files to emacs
From: |
Matthew Fidler |
Subject: |
[elpa] 211/287: Add send outlook files to emacs |
Date: |
Wed, 02 Jul 2014 14:46:04 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 35c522000284ec0acfea550374069419513576c7
Author: Matthew L. Fidler <address@hidden>
Date: Tue Jun 24 13:03:17 2014 -0500
Add send outlook files to emacs
---
ahk-us.ahk | 38 ++++++++++++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/ahk-us.ahk b/ahk-us.ahk
index a98e9bf..d8ce738 100644
--- a/ahk-us.ahk
+++ b/ahk-us.ahk
@@ -56,6 +56,7 @@ IniRead CurrCaps, ergoemacs-settings.ini, Caps, App
IniRead CurrRAlt, ergoemacs-settings.ini, RAlt, App
IniRead CurrLAlt, ergoemacs-settings.ini, LAlt, App
IniRead CurrRAltLAlt, ergoemacs-settings.ini, RAltLAlt, App
+IniRead OutlookSave, ergoemacs-settings.ini, Outlook, Save
LayLst=
VarLst=
CareL = 0
@@ -659,6 +660,43 @@ redo:
SendKey("{Ctrl down}{y}{Ctrl up}",0)
return
+execute-extended-command:
+ ;; Send to org-outlook if using outlook
+ If !WinActive("ahk_class Emacs"){
+ If WinActive("ahk_class rctrl_renwnd32"){
+ Clipboard=
+ SendKey("{Ctrl down}{c}{Ctrl up}")
+ ClipWait
+ EmailBody=%clipboard%
+ EmailBody:=uri_encode(EmailBody)
+ SendKey("{F12}",0)
+ Clipboard=
+ While !WinActive("Save As"){
+ Sleep 100
+ }
+ SendKey("{Ctrl down}{c}{Ctrl up}")
+ ClipWait
+ Counter = 1
+ Title=%clipboard%
+ Title := uri_encode(Title)
+ fileName = %OutlookSave%\%clipboard%-%Counter%.msg
+ while FileExist(fileName)
+ {
+ Counter := Counter + 1
+ fileName = %OutlookSave%\%clipboard%-%Counter%.msg
+ }
+ Clipboard =
+ Clipboard := fileName
+ ClipWait
+ SendKey("{Backspace}")
+ SendInput, %Clipboard%
+ SendKey("{Enter}")
+ fileName := uri_encode(fileName)
+ fileName = "%OutlookEmacs%"
org-protocol:/capture:/%OutlookTemplate%%fileName%/%Title%/%EmailBody%
+ Run, %fileName%
+ }
+ }
+ return
comment-dwim:
;; Word Alt+Ctrl+M is insert comment
- [elpa] 188/287: Fix some byte-compile issues, (continued)
- [elpa] 188/287: Fix some byte-compile issues, Matthew Fidler, 2014/07/02
- [elpa] 190/287: Fix Issue #233, Matthew Fidler, 2014/07/02
- [elpa] 193/287: Fix Issue #241, Matthew Fidler, 2014/07/02
- [elpa] 205/287: Only push new keys to ergoemacs-global-override-rm-keys, and don't push [remap]s (Issue #243), Matthew Fidler, 2014/07/02
- [elpa] 191/287: change downcase and UPCASE for being more clear., Matthew Fidler, 2014/07/02
- [elpa] 208/287: Fix helm-M-x keys again., Matthew Fidler, 2014/07/02
- [elpa] 206/287: Remove debugging comment for ergoemacs-rm-key, Matthew Fidler, 2014/07/02
- [elpa] 207/287: Fix ergoemacs-pushnew Issue #244., Matthew Fidler, 2014/07/02
- [elpa] 209/287: Declare ergoemacs-use-M-x-p, Matthew Fidler, 2014/07/02
- [elpa] 210/287: Test Issue #243. C-c C-c M-x vs C-c C-c., Matthew Fidler, 2014/07/02
- [elpa] 211/287: Add send outlook files to emacs,
Matthew Fidler <=
- [elpa] 213/287: Merge branch 'master' of github.com:ergoemacs/ergoemacs-mode, Matthew Fidler, 2014/07/02
- [elpa] 215/287: Merge pull request #245 from bmalehorn/programmer-dv, Matthew Fidler, 2014/07/02
- [elpa] 214/287: fix incorrect ergoemacs-layout-programmer-dv, Matthew Fidler, 2014/07/02
- [elpa] 212/287: modified ergoemacs-cut-all so it doesn't join previous cut., Matthew Fidler, 2014/07/02
- [elpa] 216/287: Drop FIXME, Matthew Fidler, 2014/07/02
- [elpa] 223/287: Remove archive-mode and ses-mode from menus. Issue #246., Matthew Fidler, 2014/07/02
- [elpa] 217/287: Fix image generation and autohotkey generation, Matthew Fidler, 2014/07/02
- [elpa] 220/287: Partial Fix for Issue #243, Matthew Fidler, 2014/07/02
- [elpa] 222/287: Merge branch 'master' of github.com:ergoemacs/ergoemacs-mode, Matthew Fidler, 2014/07/02
- [elpa] 221/287: Be more careful with links. Issue #247, Matthew Fidler, 2014/07/02