c.haslam Posted February 10, 2009 Share Posted February 10, 2009 (edited) Attached are some 80 UDFs for Rich Edit. They have all been tested fairly extensively. The .zip file includes Notes.rtf. The included Example.au3 reads Notes.rtf.Many of the functions are based on the ones Prog@ndy collected from the forums and the ones he wrote.Suggestions for improvements are welcome. If I failed to credit an author of some code, please advise. Without you guys, I wouldn't have advanced as far as I have....chrisVersion 0.1 attachedVersion 0.3 attachedVersion 0.4 attachedVersion 0.5 attached - now 96 functions Edited April 7, 2009 by c.haslam GrabelkA and TopXm 2 Spoiler CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard Link to comment Share on other sites More sharing options...
jiyan006 Posted February 17, 2009 Share Posted February 17, 2009 thanx it's very helpfull Link to comment Share on other sites More sharing options...
c.haslam Posted March 18, 2009 Author Share Posted March 18, 2009 (edited) Version 0.3 has been uploaded. I think that the UDFs are ready for submission to Gary Frost, but they do need peer review. Edited March 18, 2009 by c.haslam Spoiler CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard Link to comment Share on other sites More sharing options...
Dampe Posted March 20, 2009 Share Posted March 20, 2009 Crashes every time i try to load "Example.au3" Link to comment Share on other sites More sharing options...
c.haslam Posted March 20, 2009 Author Share Posted March 20, 2009 I found the bug: I developed the code using 3.2.12 and switched to 3.3.0.0 right at the end. In __GCR_StreamFromFileCallback I had wchar rather than char. A late-night error? I have uploaded version 0.4. Thanks for the heads-up. Spoiler CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard Link to comment Share on other sites More sharing options...
c.haslam Posted April 7, 2009 Author Share Posted April 7, 2009 Version 0.5 uploaded: now 96 functions. Spoiler CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard Link to comment Share on other sites More sharing options...
TheSaint Posted April 7, 2009 Share Posted April 7, 2009 Version 0.5 uploaded: now 96 functions.Thanks for sharing!When I get a chance, I'll check it out! Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage) Link to comment Share on other sites More sharing options...
c.haslam Posted May 25, 2009 Author Share Posted May 25, 2009 Does anyone know (or have a suggestion) as to how to disable/enable a RichEdit control? I think I could "cheat": call _GuiCtrlRichEdit_SetReadOnly and call _GUICtrlRichEdit_SetCtrlBkColor($hRichEdit,0xC0C0C0) to set the background to grey. But the control would still be a tab stop. Is there an elegant way? ...chris Spoiler CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard Link to comment Share on other sites More sharing options...
Yashied Posted May 25, 2009 Share Posted May 25, 2009 Nice work! Thanks. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
ProgAndy Posted May 25, 2009 Share Posted May 25, 2009 Does anyone know (or have a suggestion) as to how to disable/enable a RichEdit control? I think I could "cheat": call _GuiCtrlRichEdit_SetReadOnly and call _GUICtrlRichEdit_SetCtrlBkColor($hRichEdit,0xC0C0C0) to set the background to grey. But the control would still be a tab stop. Is there an elegant way? ...chrisI think, it should work with these two funcs ControlEnable($h_RichEdit, "","") ControlDisable($h_RichEdit,"","") *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
c.haslam Posted May 25, 2009 Author Share Posted May 25, 2009 Thanks. It works, so no need to include functions for this in the UDF family. Spoiler CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard Link to comment Share on other sites More sharing options...
dantay9 Posted June 30, 2009 Share Posted June 30, 2009 I got an error when trying to run _GuiCtrlRichEdit_SetCharColor.au3. It says that consdebug is not a function. Link to comment Share on other sites More sharing options...
Ascend4nt Posted June 30, 2009 Share Posted June 30, 2009 Does this have Hyperlink support? I'm just curious, as I've recently written a function to pull out hyperlinks from RTF data. Through experimentation, and from what I've read (mainly glanced over), the format is generally {HYPERLINK "http://www.google.com" hyperlink_text}. Of course, there can be any number of other braces between the end of the actual hyperlink in quotes and the full text representing that link - which my function takes into account (brace-level). I'm still probably missing a few variations on the RTF format, and I only support the \u#### unicode characters currently, but its a start. Also, if its of any use, I've written 2 RTF functions, one which strips Binary-embedded objects from RTF data (occuring typically as {\bin#### xxxxxxxxx}), and another which grabs RTF data from the clipboard using a relatively standard clipboard get method.. Then again, this is all based on a lower-level, and it appears from a brief glance that most of the code uses an abstraction layer.. My contributions: Performance Counters in Windows - Measure CPU, Disk, Network etc Performance | Network Interface Info, Statistics, and Traffic | CPU Multi-Processor Usage w/o Performance Counters | Disk and Device Read/Write Statistics | Atom Table Functions | Process, Thread, & DLL Functions UDFs | Process CPU Usage Trackers | PE File Overlay Extraction | A3X Script Extract | File + Process Imports/Exports Information | Windows Desktop Dimmer Shade | Spotlight + Focus GUI - Highlight and Dim for Eyestrain Relief | CrossHairs (FullScreen) | Rubber-Band Boxes using GUI's (_GUIBox) | GUI Fun! | IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) | Magnifier (Vista+) Functions UDF | _DLLStructDisplay (Debug!) | _EnumChildWindows (controls etc) | _FileFindEx | _ClipGetHTML | _ClipPutHTML + ClipPutHyperlink | _FileGetShortcutEx | _FilePropertiesDialog | I/O Port Functions | File(s) Drag & Drop | _RunWithReducedPrivileges | _ShellExecuteWithReducedPrivileges | _WinAPI_GetSystemInfo | dotNETGetVersions | Drive(s) Power Status | _WinGetDesktopHandle | _StringParseParameters | Screensaver, Sleep, Desktop Lock Disable | Full-Screen Crash Recovery Wrappers/Modifications of others' contributions: _DOSWildcardsToPCRegEx (original code: RobSaunder's) | WinGetAltTabWinList (original: Authenticity) UDF's added support/programming to: _ExplorerWinGetSelectedItems | MIDIEx UDF (original code: eynstyne) (All personal code/wrappers centrally located at Ascend4nt's AutoIT Code) Link to comment Share on other sites More sharing options...
Cusem Posted August 13, 2009 Share Posted August 13, 2009 Great UDF! Is it possible to add a tooltip to the RichEdit control? And would love to be able to set the text color (read in the comments these functions don't operate well in RE v0.5). Any updates on this? Link to comment Share on other sites More sharing options...
LAttilaD Posted September 9, 2009 Share Posted September 9, 2009 Trying to start Example.au3, it says _GUICtrlRichEdit_StreamFromFile is an unknown function, despite the fact GuiRichEdit.au3 is included and is in the include folder of Autoit. What should I do? Láng Attila D., LAttilaD.org Link to comment Share on other sites More sharing options...
Kip Posted September 9, 2009 Share Posted September 9, 2009 (edited) I haven't took a close look at it yet, but how is this different than ProgAndy's UDF? btw, the PauseRedraw and ResumeRedraw functions are mine, probably some others too. Edited September 10, 2009 by Kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Achilles Posted September 22, 2009 Share Posted September 22, 2009 It seems that in version .5 the support for text color (_GUICtrlRichEdit_Get/SetCharColor) has been removed. Is this going to be changed? My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
quake101 Posted September 22, 2009 Share Posted September 22, 2009 Thanks for this great UDF. Would you please add a function to add hyper links to text? I really like the auto URL function but I want to add links to text with out showing the url. Link to comment Share on other sites More sharing options...
zackrspv Posted September 22, 2009 Share Posted September 22, 2009 It seems that in version .5 the support for text color (_GUICtrlRichEdit_Get/SetCharColor) has been removed. Is this going to be changed? The following code should allow you to set color: Had to do some research lol but there are a few options that are useable from other richedit releases that will work for this one too ;==================================================================================================== ; Function Name: _GUICtrlRichEdit_SetFontColor ; Description: Select the text color ; Parameters : $hWnd - Handle to the control ; $hColor - Color value (BGR) ; $iSelect - Color entire text or selection (default) ; Return values : True on success, otherwise False ; Author : Yoan Roblet (Arcker) ; Rewritten : grham ; Notes : ;==================================================================================================== ; Func _GUICtrlRichEdit_SetFontColor($hWnd, $hColor, $iSelec = False) Local $tCharFormat = DllStructCreate($tagCHARFORMAT2) DllStructSetData($tCharFormat, 1, DllStructGetSize($tCharFormat)) DllStructSetData($tCharFormat, 2, $CFM_COLOR) DllStructSetData($tCharFormat, 6, $hColor) Local $iSelec2 = $SCF_ALL If $iSelec Then $iSelec2 = $SCF_SELECTION Return _SendMessage($hWnd, $EM_SETCHARFORMAT, $iSelec, DllStructGetPtr($tCharFormat)) EndFunc ;==>_GUICtrlRichEdit_SetFontColor -_-------__--_-_-____---_-_--_-__-__-_ ^^€ñ†®øÞÿ ë×阮§ wï†høµ† ƒë@®, wï†høµ† †ïmë, @ñd wï†høµ† @ †ïmïdï†ÿ ƒø® !ïƒë. €×阮 ñø†, bµ† ïñ§†ë@d wï†hïñ, ñ@ÿ, †h®øµghøµ† †hë 맧ëñ§ë øƒ !ïƒë. Link to comment Share on other sites More sharing options...
zackrspv Posted September 22, 2009 Share Posted September 22, 2009 (edited) Thanks for this great UDF. Would you please add a function to add hyper links to text? I really like the auto URL function but I want to add links to text with out showing the url. I've been using this UDF in my primary project at the moment (full RTF based chat). I found it easier to enable the LINK messages; and then write custom code to insert RTF code with links enabled in them. So, basically, I took what the user entered as link and TITLE, and formatted a RTF data message, and appended the RTF to the actual RTF control. You can lookup, from many places, how to embed a link in RTF, and get the proper formatting. $msg = "{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}" & _ "{\colortbl ;\red128\green0\blue0;}{\colortbl ;\red0\green0\blue255;}" & _ "{\*\generator Msftedit 5.41.21.2508;}\viewkind4\uc1\pard\qc\cf1\b\f0\fs20\b0\fs20 : \b[" & @HOUR & ":" & @MIN & ":" & @SEC & "] " & _ $USERHANDLE & ":\b0 \ul\b \cf0\cf2\b " & _ '{\field{\*\fldinst{HYPERLINK "'&$USER_LINK_LOCATION'&"}}{\fldrslt{\pard\f0\fs20 ' & $USER_LINK_TITLE & "\ulnone\b0 }}}" & _ "\ulnone\b0\cf0\cf1: " & $USER_LINK_MESSAGE & " \b\i\cf0\b0\i0\par" & _ "}" So, basically, i just collected the following information: * Link Location (actual link) * Link Title (what you want the link to appear as) * Link Message (any extra information about the link) The $USERHANDLE is a variable I created to be able to get a data message out to my clients that looks like: TomHanks: [18:53:22] LINK GOES HERE: Link message goes here. So it looks properly in the code. Granted, you can change the above RTF to what you need, but that process is what worked for me. Now, my clients can enter any links they want directly (just by typing them in), or can click on the 'hyperlink' button, and enter a custom title/message for a link as well. Edited September 22, 2009 by zackrspv -_-------__--_-_-____---_-_--_-__-__-_ ^^€ñ†®øÞÿ ë×阮§ wï†høµ† ƒë@®, wï†høµ† †ïmë, @ñd wï†høµ† @ †ïmïdï†ÿ ƒø® !ïƒë. €×阮 ñø†, bµ† ïñ§†ë@d wï†hïñ, ñ@ÿ, †h®øµghøµ† †hë 맧ëñ§ë øƒ !ïƒë. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now