Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
!-::–
return
^+v:: ;paste clipboard as plain text
Clipboard := Clipboard
SendInput, ^v
return
vText := Clipboard
if RegExMatch(vText, "`r`n$")
vText := SubStr(vText, 1, -2)
;note:
;vText := Clipboard stores the clipboard's plain text to a variable
;Clipboard := vText puts plain text onto the clipboard
^- ; em dash
!NumpadAdd::
Send, {ASC 0151}
return
+- ; en dash
!NumpadSub::
Send, {ASC 0150}
return