Im only using the class nothing else. If you look at the class code you can see how it works. (or should work)
SetSel() will move the caret anywhere you want.
Im more interested in automating a hidden control not manually interacting with a control / gui / editor.
Class RichEdit - update on 2015-04-14 (v0.1.05.00)
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
Ah, I see. I've never changed any of just me's code in either Class_RichEdit or Class_RichEditDlgs, just code in the sample app. I do see what you refer to in Class_RichEdit.
Thanks for the tip.
Regards,
burque505
Thanks for the tip.
Regards,
burque505
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
Great class, thank you!
Question: I have difficulties with copying image from the edit field and paste it into Gmail. Try this:
- open RichEdit sample
- paste the image in plus some text
- select image and text and copy it to clipboard (Ctrl+C)
- open Gmail, Compose new mail, paste the image (Ctrl+V) --- it doesn't work, the image is not pasted, only text
- open Word and paste ihe image --- it works.
Any idea? Thanks.
Question: I have difficulties with copying image from the edit field and paste it into Gmail. Try this:
- open RichEdit sample
- paste the image in plus some text
- select image and text and copy it to clipboard (Ctrl+C)
- open Gmail, Compose new mail, paste the image (Ctrl+V) --- it doesn't work, the image is not pasted, only text
- open Word and paste ihe image --- it works.
Any idea? Thanks.
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
@m3user, that's interesting. I just tried it with GMail also, and all that pasted was text. So I tried opening an RTF file with WordPad, copied an image and text, same problem.
I'm betting GMail just doesn't accept RTF, but I haven't checked into it any further.
I'm betting GMail just doesn't accept RTF, but I haven't checked into it any further.
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
Yes, copying from WordPad to Gmail is also an issue. I tried simply to copy anything (Ctrl+C) in WordPad and paste it (Ctrl+V) to Gmail - no rich text, no images.
I wonder if would it be possible to update the RichEdit dll control to a newer version?
I wonder if would it be possible to update the RichEdit dll control to a newer version?
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
I would also guess Gmail does not accept Rtf which would explain. Word can copy both HTML and Rtf formatting.
You could use a more recent dll but that would not change this. Only some advanced functionalities have been added but the class is using the most advanced version compatible with Windows 7.
You could use a more recent dll but that would not change this. Only some advanced functionalities have been added but the class is using the most advanced version compatible with Windows 7.
EverFastAccess : Take Notes on anything the Fast way: Attach notes, Set reminders & Speed up research in 1 gesture - AHK topic
AHK Dynamic Obfuscator L - Protect your AHK code by Obfuscation - AHK topic
QuickModules for Outlook : Sort Outlook emails very quickly to multiple folders - AHK topic
Coding takes lots of time and efforts. If I have helped you or if you enjoy one of my free projects, please consider a small donation
Sorry I am working hard at the moment at a new job and can't commit on delays of answers & updates
AHK Dynamic Obfuscator L - Protect your AHK code by Obfuscation - AHK topic
QuickModules for Outlook : Sort Outlook emails very quickly to multiple folders - AHK topic
Coding takes lots of time and efforts. If I have helped you or if you enjoy one of my free projects, please consider a small donation
Sorry I am working hard at the moment at a new job and can't commit on delays of answers & updates
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
@DigiDon, good to see you back! Hope things are well.
Regards,
burque505
Regards,
burque505
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
@DigiDon
I tried to save Word file as rtf and this pastes well into Gmail. The file saved from RichEdit (or WordPad) does not. The same is with simple copy and paste.
Is there anything I could try? What should be changed to try the most recent dll?
I tried to save Word file as rtf and this pastes well into Gmail. The file saved from RichEdit (or WordPad) does not. The same is with simple copy and paste.
Is there anything I could try? What should be changed to try the most recent dll?
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
@m3user, I get the same result. However, you might try copying and pasting from that rtf file saved by Word into RichEdit or WordPad. Try copying just the image, then try Ctrl-A, Ctrl-C before pasting. I think the results will surprise you. Bottom line is that Word seems to add data to the clipboard that neither WordPad or RichEdit do - at least that's been my experience.
Regards,
burque505
Regards,
burque505
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
The reason is that I bet word puts multiple formats onto the clipboard including plain text, rtf, and html
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
@kczx3, I'm sure that's it too. Using Word's RichEdit's riched20.dll, which is quite a bit larger, can do the trick may get us closer. But then of course you have to have Word . For the attached script, I'm using the riched20.dll that's found in "C:\Program Files\Common Files\Microsoft Shared\OFFICE16\RICHED20.DLL", just substitute your version number. (It needs to go in the script directory as I've written it.)
Try copying and pasting from Word - it works.
Test files in archive. You'll notice that if you open the Document2.rtf file in WordPad, it won't show the image, but in Word it does.That's because it was saved as RTF from Word! Try the same test with Document 2 (2).rtf - it was never corrupted by Word. Try pasting back and forth among a Word .docx, a Word .rtf, the script, and WordPad.
This gets me no closer to pasting into Gmail. All that pastes out of the script is text.
Try copying and pasting from Word - it works.
Test files in archive. You'll notice that if you open the Document2.rtf file in WordPad, it won't show the image, but in Word it does.That's because it was saved as RTF from Word! Try the same test with Document 2 (2).rtf - it was never corrupted by Word. Try pasting back and forth among a Word .docx, a Word .rtf, the script, and WordPad.
This gets me no closer to pasting into Gmail. All that pastes out of the script is text.
- Attachments
-
- RichEdit problems.zip
- (85.5 KiB) Downloaded 234 times
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
So do I understand correctly that this is not possible in AutoHotkey i.e. there is no rich text control compatible with Gmail?
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
@m3user, I'm still thinking it's possible, but I haven't found the answer yet. Best of luck.
Regards,
burque505
Regards,
burque505
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
@m3user, just to return to this, please look at this link, it's a blurb for a mass mailer, but has good info. The images are apparently NOT going in your Gmail message unless they are hosted online, or you insert them manually . If you can do without images (which seems unlikely), I have got an RTF-to-HTML solution working (images and all), based on code here, but it doesn't help with the Gmail problem.
Regards,
burque505
Regards,
burque505
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
How do I do Scroll Text. Text extends from left to right on the screen. I don't want to use the horizontal scroll bar. Is this possible? Thank you.
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
Code: Select all
RCHEDT.SetOptions(["READONLY"], "SET")
justme, I thank for you desingned rich edit class.
however, this code is can't removing the horizontal scroll bar and so isn't been scrolling the text. how can I do it?
SOLVED
RCHEDT.WordWrap(True)
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
This method was working fine on Windows 10. But on Windows 7 computer it is showing rtf source code. Is there any other way to print rtf content from variable to richeditbox?
;windows7 is also useless.
Code: Select all
RE.ReplaceSel(RtfContentVariable)
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
What about RE.SetText(...)?
Return to “Scripts and Functions (v1)”
Who is online
Users browsing this forum: wilkster and 46 guests