 Return
 
 
-;-- win+alt+l  => 呼叫lync
-#!l:: 
-    Run, lync
+
+;==================== evernote 相关
+;-- ctrl+alt+e  => 呼叫evernote 并搜索
+^#e::
+    IfWinNotExist ahk_class ENMainFrame
+    {
+        Run evernote        
+        WinActivate
+        WinWaitActive ahk_class ENMainFrame
+        Send, ^!e
+    }    
+    IfWinNotActive ahk_class ENMainFrame
+    {
+        WinActivate
+        WinWaitActive ahk_class ENMainFrame
+        Send, ^!e
+    }
+    else
+    {
+        WinWaitActive ahk_class ENMainFrame
+        Send, ^!e   
+    }
+Return
+
+;-- ctrl+alt+n  => 呼叫evernote 并新建一个页面
+^#n::
+    IfWinNotExist ahk_class ENMainFrame
+    {
+        Run evernote       
+        Send, ^!n
+    }    
+    else
+    {
+        Send, ^!n   
+    }
 Return
 
 
-;-- win+alt+o  => 呼叫outlook
-#!o:: 
-    Run, outlook
-Return
+
+;-- CTRL+SHIFT+U => 在evernote里时，转化成无序列表
+^+U::
+    IfWinActive ahk_class ENMainFrame
+    {
+        Send , ^+B
+    }
+    IfWinActive ahk_class ENSingleNoteView
+    {
+        Send , ^+B    
+    }
+return
+
+
+;-- CTRL+SHIFT+I => 在evernote里时，转化成有序列表
+^+I::
+    IfWinActive ahk_class ENMainFrame
+    {        
+        Send , ^+O
+    }
+    IfWinActive ahk_class ENSingleNoteView
+    {        
+        Send , ^+O    
+    }
+return
+
+
 
 
 

#NoEnv
#SingleInstance, force
SendMode Input


;-- win+alt+up  => 增大音量
#!up:: 
    SoundSet, +3
    SoundGet, master_volume
    Transform, master_volume, Round, master_volume
    TrayTip, volume, %master_volume%, , 1
Return


;-- win+alt+up  => 降低音量
#!down:: 
    SoundSet, -3
    SoundGet, master_volume
    Transform, master_volume, Round, master_volume








；================ 打开 或者 激活 或者 最小化 
；================ 以下用来绑定快捷键和应用的关系
;-- ctrl+win+s  => 呼叫sublime
^#s:: 
    OpenOrActriveOrMinimize("PX_WINDOW_CLASS", "subl")
Return

;-- ctrl+win+t  => 呼叫notepad
^#t:: 
    OpenOrActriveOrMinimize("Notepad", "notepad C:\Users\I015571\Documents\baiduyun\work@sap\ini\fastlaunch\temp.txt")
Return

;-- ctrl+win+o  => 呼叫outlook
^#o:: 
    OpenOrActriveOrMinimize("rctrl_renwnd32", "outlook")
Return

;-- ctrl+win+l  => 呼叫lync
^#l:: 
    OpenOrActriveOrMinimize("CommunicatorMainWindowClass", "lync")
Return







;------------- Functions

OpenOrActriveOrMinimize( target_class_id, target_program){ 

    IfWinNotExist ahk_class %target_class_id% 
    {
        Run %target_program%     
    }    
    IfWinNotActive ahk_class %target_class_id%  
    {
        WinActivate
    }
    else   
    {
        WinMinimize
    }
}


