Clipboard Tricks Hotkey?

Started by mcjathan, February 19, 2014, 02:19:03 PM

Previous topic - Next topic

mcjathan

Greetings,

We've come to rely a lot on Winbatch's Clipboard Tricks installation in the context menu.  We're wondering if we can create a hotkey for the Path and Filename(s) function.  We already have a hotkey utility that we use to create other customized hotkeys.  Is there a way we can select the file and then run FileMenu.DLL using our hotkey utility and then have the selected file's Path and Filename pasted to the clipboard?  If so, please provide an example.

Regards,

Jeff

Deana

Your script might look something like this:

Code (winbatch) Select

;TOTALLY UNDEBUGGED
explorers = IntControl(31,1,0,0,0)
count = ItemCount( explorers, @tab )
For x = 1 to Count
   winid = ItemExtract( x, explorers, @tab )
   hwnd = DllHwnd( winid )
   ;Pause("Window handle of Explorer",cWndInfo(hwnd,0))
   objShell = CreateObject("Shell.Application")
   objInstances = objShell.windows
   If objInstances.Count > 0 ; make sure we have instances open.
    ForEach objWindow In objInstances
        If objWindow.hwnd == hwnd
  Colselected = objWindow.document.SelectedItems
  ForEach objSel In Colselected
     Pause('Selected Item',objSel.Path)
  Next
  Endif
    Next
   EndIf
Next
Exit
Deana F.
Technical Support
Wilson WindowWare Inc.

mcjathan

Beautiful!  That did the trick!  Thank you.

Deana

Deana F.
Technical Support
Wilson WindowWare Inc.