ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Ditto: yet another free clipboard manager

<< < (5/5)

yksyks:
Oh, sorry, my bad. I meant "Global hotkeys for last ten items copied", not "individual clips hotkeys". The latter work fine, while the former don't, regardless of the key combinations. They are even correctly displayed in the Global Hot Keys window:



Is it only me?

yksyks:
It was not only me. Fixed now in the latest beta (3.18.22.0), available at http://ditto-cp.sourceforge.net/beta/. Enjoy!

MilesAhead:
Late to the party on this one. I was using a little freeware called NetClip.exe

But no matter how I tried it would never copy files over. It's a relief not to have to open the shared folders and do all the drag & drop manually. Just control-v it in there! Nice program.

Although it would be nice to explain that adding a computer name to Friends isn't enough. You also need to stick it on the list at the bottom of the settings.  Right click Send To was never disabled, but it never opened. Drove me nuts for about 1/2 hour until I figured it out.

Edit: After playing around with it a bit I don't like the choice of either send every copy to the network machines, or copy, then right click, then go to Send To then choose remote machine to send a clip.

I put in a feature request. But in the meantime I did what every AHK_L programmer does. I made a macro to do the dirty work. It's called DittoFriend.  It runs in the tray along with Ditto. Set your machines in the Friends List not to copy all clips.  To copy the clip you are doing at the moment, press Control-Alt-c. DittoFriend sends Control-c to the active window to copy the clip.  Then it pops up a Gui so that sending keys to manipulate Ditto doesn't go into the active window(with editors you can get weird things happening.)  The Quick Paste window comes up over the Gui.  By macro the context menu opens on the first item, Send To is selected and Enter pressed.  Then the windows are closed.

It's a kludge. But it actually works pretty well. I only have 2 machines. I haven't tested it with more machines in the Friends list. But I would think it would work as expected.

On the target network machine you just press Control-v to paste as usual.

The zip file is attached.
If you forget the hotkey hover the mouse on the tray icon.

Edit: Here's the source. I compiled using AHK_L 32 bit Unicode build.

Edit2: I made a small modification so that EmptyWorkingSet() isn't called during the hotkey processing.
Also the zip now includes a free custom icon I downloaded.  Looks pretty good in the Tray


--- ---;---------  Note: Compiled with latest AHK_L 32 bit Unicode build  ----------

#NoEnv
#SingleInstance force
SendMode Input
SetWorkingDir %A_ScriptDir%
CoordMode,Mouse,Client
Menu Tray,NoStandard
Menu Tray,Add,Quit,DoQuit
Menu Tray,Tip,Control-Alt-c to Net Copy Clip
if (A_IsCompiled)
  Menu Tray,Icon,%A_ScriptFullPath%,1

DumpMemory:
  _EmptyWorkingSet()
return


^!c::
  Process,Exist,Ditto.exe
  if (! ErrorLevel)
  {
    SoundPlay,*16
    SetTimer,DumpMemory,-30000
    return
  }
  Send,^c
  Gui -Resize -MaximizeBox
  Gui,Show,h100 w200,Ditto Friend
  Sleep,250
  MouseMove,23,23
  Send,^``
  Sleep,50
  Click Right,1,1
  Sleep,50
  Send,s{Enter}
  Sleep,250
  Send,{Esc}
  Gui +LastFound
  WinActivate
  Send,{Esc}
return

GuiClose:
GuiEscape:
  Gui,Destroy
  SetTimer,DumpMemory,-30000
return

DoQuit:
  ExitApp

;call EmptyWorkingSet in AHK
_EmptyWorkingSet()
{
  return DllCall("psapi.dll\EmptyWorkingSet", "UInt", -1)
}

MilesAhead:
I made a few changes to DittoFriend to give the macros a better chance of success on the first try. Source,icon and exe are included in DittonFriendNEW.zip attached.

Navigation

[0] Message Index

[*] Previous page

Go to full version