I've used a couple of dictionary programs that recognize a text string as a command line parameter. They would be very useful in conjunction with AkelPad. Is there a way to use text selected in the editing window as a parameter to be passed to the .EXE file through the Exec() command? So far, the only parameters I have found are %f, %d and %a (file, directory and AkelPad directory respectively).
Here's an example of what I had in mind:
Exec('Lookup.exe "%s"')
where %s is the selected text.
Question about Exec() command parameters
- Author
- Message
-
Offline
- Posts: 23
- Joined: Sun Nov 13, 2011 5:40 pm
Thanks very much for that; it works flawlessly!KDJ wrote:foliator
You can do this by using the simple script:
Command:
Call("Scripts::Main", 1, "Exec_Lookup.js")
BTW, it didn't work at first until I used double backslashes in the external program's path, as I had noticed in some other script. By that you can probably tell that I'm no programmer.