-
1. Re: Manipulating the clipboard
K.Daube Jul 4, 2013 7:30 AM (in response to K.Daube)Something very strange happens:
$.includePathgenerates a string ending with a semicolon, for example:E:\_DDDprojects\FM+EN-escript\escript;Hence the following does not find and execute my compiled AHK script
// establish the hortcut for inserting temp. citations with the AHK scipt var ahkFile = File($.includePath + "\\ctrl-y.exe"); if (ahkFile.exists === true) { ahkFile.execute(); } else { alert ("Program ctrl-y.exe not found in script directory"); } }OK, I just need to add some code to remove the semicolon. But why the heck is it there?
-
2. Re: Manipulating the clipboard
4everJang Jul 14, 2013 4:33 AM (in response to K.Daube)Klaus,
If I understand it correctly, you want to put a citation from the clipboard into your FM document by pasting, but the pasted text should have double angle brackets around it to make it show up as a citation. I would think that the easiest solution would be to have a script for "Paste as citation" instead of trying to tweak the clipboard contents before pasting it. The "Paste as citation" simply pastes whatever is in the clipboard to the text location and then adds the double angle brackets. Adding the "Paste as citation" command to the Edit menu is not a big deal and you can define your own shortcut to invoke the command.
Would this not be much easier than changing the cilpboard contents ?
Good luck
Jang
-
3. Re: Manipulating the clipboard
K.Daube Jul 24, 2013 8:51 AM (in response to 4everJang)Jang,
Thank You for this idea. Since the clipboard is filled by another application (EndNote), I thought that the method i have used in previous vesion of my utility would be adequate.
With the vary same method (an AHK script) I have establisehe some texthelpers (see http://www.daube.ch/docu/fmaker69.html) which are handy not only in FM.

