Advertisement
jcunews

ClipboardOwnerFinder.ahk

Jun 15th, 2019 (edited)
496
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;Find out which application that prevent other applications from accessing the clipboard
  2.  
  3. hwnd:= DllCall("USER32\GetOpenClipboardWindow")
  4. if (hwnd != 0) {
  5.   WinGet, pid, PID, ahk_id %hwnd%
  6.   WinGet, path, ProcessPath, ahk_id %hwnd%
  7.   MsgBox, 16, Clipboard Owner Finder, Clipboard is being owned by an application.`n`nProcess ID: %pid%`n`nPath:`n%path%.
  8. } else {
  9.   MsgBox, 64, Clipboard Owner Finder, Clipboard is not being owned by an application.
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement