I have potplayer running and I want to copy the subtitle to clipboard ( can be done!) and when the clipboard changes run a dictionary app and ...
but this method:
Code: Select all
#Persistent
OnClipboardChange("ClipChanged")
return
ClipChanged(Type) {
ToolTip Clipboard data type: %Type%
Sleep 1000
ToolTip ; Turn off the tip.
}
will be always active overally and whenever the clipboard changes, It runs.
I want this functionality only when the clipboard changes in potplayer focused and when it is minimized or closed I want clipboard changes do as usual.
hope It makes sense
thank you