boji Posted May 14, 2008 Share Posted May 14, 2008 My first contribution to the forum =) _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 Link to comment Share on other sites More sharing options...
ResNullius Posted May 14, 2008 Share Posted May 14, 2008 My first contribution to the forum =) _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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now