When I copy an embedded hyperlink from Outlook or Notepad++ and paste it into a TRichViewEdit, it shows the hyperlink format like embedded.
I tried to debug the TRichViewEdit and searched a lot on Google but couldn't find a solution.
When I call Clipboard.AsText I get only the hyperlink(http://foo.bar). How can I get the text of the embedded hyperlink, not the embedded address? Is there something like "hidden data" or do I have to do something else?
Related
Is There A Browser-Add-on That Can Create A Temporary Txt File From My Clipboard And Populate The File Submit Dialog?
Guide for firefox:
Get the data from your clipboard with this: paste data from clipboard using document.execCommand("paste"); within firefox extension
Now you can either create a temporary file with something like OS.File: https://developer.mozilla.org/en-US/docs/JavaScript_OS.File/OS.File_for_the_main_thread
Or create a object with something like window.createObjectUrl.
Then assuming the file submit dialog is prompted by a html5 uploader, then you should just set value of that html5 dialog box there are other ways though too, like mozSetDataAt, mozSetFileArray etc, search github for these keywords shows excellent examples:
https://github.com/search?l=javascript&q=mozSetDataAt&type=Code&utf8=%E2%9C%93
https://github.com/search?l=javascript&q=mozSetFileArray&ref=searchresults&type=Code&utf8=%E2%9C%93
You might need to use the mimeType of application/x-moz-file not sure. Definitely experiement with it and share your solution, and ask for help along the way. This is fun stuff.
There are probably other smarter ways to attach into a input type=file, i was trying to do it the other week. I would also be interested if someone else could share some solutions to actually trick the file input element to think the native file dialog was actually used, maybe using XPCOM.
I created a WiX 3.5 setup with a custom license file by putting this into the .wxs file:
<WixVariable Id="WixUILicenseRtf" Value="License.rtf" />
This works perfectly and the link is displayed when I run the created .msi file.
(I'm using the WixUI_InstallDir Dialog Set)
Now I want to put a hyperlink into the license file.
I just put the link into the file by opening it in WordPad and pasting http://mylink.com (WordPad turns it into a hyperlink automatically).
When I compile that in WiX, the license agreement dialog shows the link like this:
<http://mylink.com>
I noticed that this seems to relate to WordPad creating a hyperlink automatically (see above).
When I remove the http:// part from the link in the license file, WordPad doesn't recognize it as a link anymore and in the compiled .msi file, the < and > in the license agreement dialog go away.
Any ideas how I can get rid of the additional < and >, except putting the link into the license file without the http:// part?
EDIT:
Okay, maybe I didn't think enough when I used the word "hyperlink".
What I actually meant was: It does not have to be an actual clickable hyperlink.
I just want the adress of my web page to be displayed at the top of the license file.
I'm perfectly fine if it's just the URL as text (not clickable), but I want it to be displayed as I entered it, and not with < >.
The problem is that WordPad automatically turns any URL into a hyperlink as soon as I enter it, so I have no idea how to get the license agreement dialog to treat it as normal text.
Windows Installer doesn't support hyperlinks in the scrollable text control. This is why the link is not displayed correctly. Even if it was, nothing would happen when you click it because Windows Installer doesn't handle this event.
A hyperlink in a scrollable text control works only if you use an external UI which handles it.
Edit:
If you just want to display some text as a link, the usual approach is make it blue and underlined. As you already noticed Windows Installer doesn't show conventional hyperlinks correctly.
If you want to show a link as normal text, simply open the RTF file with a normal text editor (for example notepad.exe) and remove the hyperlink markers. Just follow the normal text formatting and you will easily spot the markers you want to remove.
I am trying to provide a link in a PDF, which when clicked will open the folder the PDF is present. How can this be done?
this one would be alot easier if u have adobe profesional...what you do is this:
microsoft word(which has ur hyperlink) >adobe pdf>change conversion settings>check the box of "add links to adobe pdf". Now same thing again:
microsoft word>adobe pdf>convert pdf.
it converts with hyperlinks...wooooilaaa...plus u got some more options to create your chart in word than in adobe...hope this one helped as welll...!!!
I've been using Indesign to create some brochures. I export them as SWF to display them as a flip book.
The next step I want to take is to put hyperlinks on each product in my brochure so that when a user clicks them the item gets added to their shopping basket, or something similar.
First I tried using a hyperlink value of ?product=code, but as there's no http://, whenever you open this link it just opens a blank tab.
Secondly I tried a hyperlink value of http://linktosite.com/flipbook.php?product=code. This worked fine but as the users may want to order several products from the catalogue they're going to click on a lot of the links, which will in turn open up loads of new tabs in the browser.
My question is: Is there a way of passing hyperlink values through the same page the SWF is on? I don't want the links to open a new tab everytime.
How can I achieve this?
Indesign cs5.5 has new feature called 'web viewer'in windows/extensions/overlay creator. This let you browsing another website in indesign file.
I have a templates written in RTF(with some tags which are replaced by data from DB in app), but when I edit them in MS Word, Word put some invisible tags to the templates, which destruct my tags(I must open template in Notepad and edit code).
Do you know some editor for RTF, which strict follows RTF specification?
Thanks
On Windows, the included app Wordpad is pretty decent in my opinion.
The RTF spec allows an RTF editor such as Word or a third party control to sprinkle the tags in-between the RTF text, provided that the actually RTF display is maintained. For this reason, there is no way to guarantee that your original template text will not be disturbed. For this reason, I recommend using an RTF editor API to do any search/replacement within your template. The RTF editor knows to put aside the RTF tags and access the original text as intended.
OK, I know that google find bunch of editors, but I don`t have time to try each of them to find out best one.
so I search for advice which is good, not which is avialable
EDIT: I found and for weeks use this solution
TE EDIT
and is very good, I recommend it.