Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Simple Clear Clipboard


  • Please log in to reply
1 reply to this topic

#1 boji

boji

    Seeker

  • Active Members
  • 49 posts

Posted 14 May 2008 - 03:16 PM

My first contribution to the forum =)


AutoIt         
_Singleton(@ScriptFullPath) #include <Misc.au3> $d = "C:\windows\system32\" $f = "clipbrd.exe" HotKeySet("{ESC}", "Terminate") AdlibEnable("Terminate",4000) Opt("WinWaitDelay",200) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) If Clipget() = "" Then Exit run( "cmd /c " & " """ & $d & $f & """ ", "", @SW_HIDE) WinWait("ClipBook Viewer","") If Not WinActive("ClipBook Viewer","") Then WinActivate("ClipBook Viewer","") WinWaitActive("ClipBook Viewer","") Send("{ENTER}") Sleep(300) Send("{DEL}") WinWait("Clear Clipboard","") Send("{ENTER}") WinWait("ClipBook Viewer","") Send("{F10}fx") Exit Func Terminate() Exit EndFunc








#2 ResNullius

ResNullius

    Drink Deep, or Taste Not the Pierian Spring

  • Active Members
  • PipPipPipPipPipPip
  • 1,033 posts

Posted 14 May 2008 - 03:29 PM

My first contribution to the forum =)


AutoIt         
_Singleton(@ScriptFullPath) #include <Misc.au3> $d = "C:\windows\system32\" $f = "clipbrd.exe" HotKeySet("{ESC}", "Terminate") AdlibEnable("Terminate",4000) Opt("WinWaitDelay",200) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) If Clipget() = "" Then Exit run( "cmd /c " & " """ & $d & $f & """ ", "", @SW_HIDE) WinWait("ClipBook Viewer","") If Not WinActive("ClipBook Viewer","") Then WinActivate("ClipBook Viewer","") WinWaitActive("ClipBook Viewer","") Send("{ENTER}") Sleep(300) Send("{DEL}") WinWait("Clear Clipboard","") Send("{ENTER}") WinWait("ClipBook Viewer","") Send("{F10}fx") Exit Func Terminate() Exit EndFunc

From the help file:

ClipPut()

Remarks

Any existing clipboard contents are overwritten.
An empty string "" will empty the clipboard.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users