Loc Posted May 18, 2021 Share Posted May 18, 2021 For example: $Edit = GuiCtrlcreateEdit('', 0, 0, 50,50) guictrlsetcolor() then it changes the color of all 1 control. Anyone have a good way to udf for me please. Link to comment Share on other sites More sharing options...
TheXman Posted May 18, 2021 Share Posted May 18, 2021 (edited) Have you thought about using _GUICtrlRichEdit_* instead? Look up "GuiRichEdit Management" in the help file for more information. Edited May 18, 2021 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
Loc Posted May 19, 2021 Author Share Posted May 19, 2021 _GUICtrlRichEdit_SetCharColor this function I use color, it's not like guictrlsetcolor, I use au3info to get the color but it's not like the color I got. someone help me please Link to comment Share on other sites More sharing options...
Nine Posted May 19, 2021 Share Posted May 19, 2021 You need to provide a BGR color value to _GUICtrlRichEdit_SetCharColor. Au3info tool gives you RGB color... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Zedna Posted May 19, 2021 Share Posted May 19, 2021 Here is example code with RGB2BGR() Func RGB2BGR($iColor) Local $sH = Hex($iColor, 6) Return '0x' & StringRight($sH, 2) & StringMid($sH, 3, 2) & StringLeft($sH, 2) EndFunc ;==>RGB2BGR Resources UDF ResourcesEx UDF AutoIt Forum Search 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