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

DonationCoder.com Software > Clipboard Help+Spell

Runnable .format files

(1/2) > >>

jathri:
Hello,
what do you please think of making files from c:\Users\...\Documents\DonationCoder\Clipboard Help+Spell\PresetFormats\ runnable? So as these presets can be used in scripts?
See for example https://autohotkey.com/docs/commands/Run.htm. A script could then look like this:
...
clipboard = %nameofthevariable%
runwait, c:\Users\...\Documents\DonationCoder\Clipboard Help+Spell\PresetFormats\TrimLineBreaks.preset.format
msgbox %clipboard%
Or it could work like this (using parameters somehow):
clipboard = %nameofthevariable%
runwait, C:\Program Files (x86)\Clipboard Help+Spell\ClipboardHelpAndSpell.exe /TrimLineBreaks.preset.format
msgbox %clipboard%
Thank you for your consideration on this matter.

mouser:
Hi Jathri.

It's an interesting idea.. I guess the biggest impediment is just a gut feeling that for commandline execution of text formatting scripts, one would probably be better off using a nice little language designed for manipulating text (perl perhaps), since those languages have so much more power than CHS formatting presets.

Having said that.. It wouldn't be such a crazy idea to make a standalone tool of a different name, like SimpleTextFormatter which basically was just the text formatting functionality of chs, designed to be run manually or via commandline.

jathri:
Hello!
Thanks for your reply.
So it would work like this (in scripts or in windows .lnk shortcuts):
...\SimpleTextFormatter.exe "c:\Users\...\Documents\DonationCoder\Clipboard Help+Spell\PresetFormats\TrimLineBreaks.preset.format"
And CHS GUI would then become presets creator for these shortcuts, am I right?
jathri

EDIT: Or at least I would welcome for it to be CHS compatible.

jathri:
It crossed my mind that CHS itself could use SimpleTextFormatter.exe via command line, am I right? So as to all the format functions do not need to be developed twice.
Please see also https://github.com/hi5/TF for some of the functions which are not yet implemented in CHS: TF_CountLines, TF_ReadLines, TF_RemoveLines etc.

IainB:
@Jathri:
I think I see what you mean, but am not sure. I could be wrong, of course, but what you are suggesting would seem to be of limited potential use to most users.
Where @mouser says:
...Having said that.. It wouldn't be such a crazy idea to make a standalone tool of a different name, like SimpleTextFormatter which basically was just the text formatting functionality of chs, designed to be run manually or via commandline.
-mouser (September 29, 2016, 05:15 AM)
--- End quote ---

-have you considered bundling those AHK text formatting commands into an AHK script (or compiled as a .exe), giving it (say) a GUI for the user to select which commands they want to apply? The script could then be called by FARR and used to edit the text contents of the system clipboard or the CHS clipboard buffer (if those things were possible) or a designated text file where the text contents of the clipboard had been saved.
This could be more easy to use for most users than (say) them having to know how to invoke the separate commands individually, or (say) @mouser having to program in some text manipulation commands which might be of only limited use to most users. If the AHK script was compiled as a .exe, then it could presumably be packaged as one of the many optional plugins for FARR, and it wouldn't necessitate users having to install AutoHotkey.

Just a thought. I don't know how practicable that might be.

Navigation

[0] Message Index

[#] Next page

Go to full version