; ctrl+alt+c to append text into clipboard. ; ctrl+alt+end to pause the script. ; Last Updated: Nov 01, 2014 #Persistent #SingleInstance, Force #NoEnv ;#NoTrayIcon SetBatchLines, -1 SetTitleMatchMode, 2 ; partial match SetWorkingDir, %A_ScriptDir% SendMode, Input DetectHiddenWindows, Off ; they're hidden for a reason. CHS_EXE = ClipboardHelpAndSpell.exe ;If ClipboardHelpAndSpell.exe is not running then start ClipboardHelpAndSpell.exe Process, Exist, %CHS_EXE% { If ! ErrorLevel { IfExist, %A_ScriptDir%\%CHS_EXE% Run, %A_ScriptDir%\%CHS_EXE% Return } } Return ^!c:: ; Source: http://www.biancolo.com/ ; Appends selection to clipboard bak = %clipboard% clipboard = ; Empty the clipboard Send, ^c ClipWait, 2 If ErrorLevel { TrayTip, MyAHK, The attempt to copy text onto the clipboard failed.,1 SetTimer, RemoveTrayTip, 5000 Return } clipboard = %bak%`r`n%clipboard% Return ^!End::Pause RemoveTrayTip: SetTimer, RemoveTrayTip, Off TrayTip Return