#Persistent ; keeps a script permanently running
OnClipboardChange: ; is launched automatically whenever the content of the clipboard changes
time_copied :=""
time_copied := A_TickCount
; SoundBeep ; Play the default pitch and duration.
SoundBeep, 750, 500 ; Play a higher pitch for half a second
If (A_EventInfo = 1) ; the clipboard contains text or files copied
{
If (DllCall("IsClipboardFormatAvailable", "uint", 15)) ; the clipboard contains file(s)
ToolTip, file(s) copied
else
ToolTip, text copied
}
else
If (A_EventInfo = 2) ; the clipboard contains images
ToolTip, image(s) copied
Sleep 1000
ToolTip
return
; ctrl+v for pasting
~^v::
SoundBeep
time_since_copied := (A_TickCount - time_copied)
time_since_copied /= 1000
ToolTip, pasted'ncopied: %time_since_copied% seconds ago
Sleep, 1500
ToolTip
return
Para detalhes, consulte OnClipboardChange