GaryFrost Posted March 16, 2005 Share Posted March 16, 2005 (edited) Got tired of looking up hex codes for setting gui, and gui control colors GUISetBkColor, GUICtrlSetColor, and GUICtrlSetBkColor code generator suggestions/criticism/bug reports are welcome. See below bug fix Deleted this attachment see my last post for attachment Edited March 17, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Radsam Posted March 16, 2005 Share Posted March 16, 2005 This is really handy. Could you possibly put the "$" in automatically for the Control ID edit box? . Would save a bit of typing. Link to comment Share on other sites More sharing options...
GaryFrost Posted March 16, 2005 Author Share Posted March 16, 2005 (edited) Attachment has been updated, if the controlid doesn't start with a $ then it is put on for you. And thanks, hope it helps you as much as it has helped me. Edited March 16, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted March 17, 2005 Author Share Posted March 17, 2005 (edited) Fixed bug with create GUICtrlSetBkColor Deleted this attachment see my last post for attachment Edited March 17, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
steveR Posted March 17, 2005 Share Posted March 17, 2005 nice one! thanks AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass. Link to comment Share on other sites More sharing options...
buzz44 Posted March 17, 2005 Share Posted March 17, 2005 nice, might wanna change it so you can change the "test colour" so the input box is editable or something so you can change it. =) qq Link to comment Share on other sites More sharing options...
GaryFrost Posted March 17, 2005 Author Share Posted March 17, 2005 (edited) Failed to see the logic in making that an input box However, it now shows "text color on background color" text example: Black on White Deleted this attachment see my last post for attachment Edited March 17, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Lazycat Posted March 17, 2005 Share Posted March 17, 2005 Strange thing, look for screenshot. Although Times New Roman Bold used, this looks like Marlett system font... When I change this into just Times New Roman all works fine. Any ideas why? Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
GaryFrost Posted March 17, 2005 Author Share Posted March 17, 2005 (edited) Is Pretty strange, have it set for "Time New Roman Bold", guess I need to change it to just "Times New Roman" and change the weight. See if this has the correct of effect for you of "Bold" Thanks Deleted this attachment see my last post for attachment Edited March 17, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Lazycat Posted March 17, 2005 Share Posted March 17, 2005 Yes, plain Time New Roman with font weight settings works fine. But anyway this really strange, why Time New Roman Bold was mapped to Marlett... I'll try at home if this will act similar. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
GaryFrost Posted March 17, 2005 Author Share Posted March 17, 2005 (edited) Added the GUICtrlSetFont create to this version Not sure if i'll keep this in. Gets the list of fonts from the registry (using regedit export), then weeds out other than ttf fonts Deleted this attachment see my last post for attachment Edited March 17, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
steveR Posted March 17, 2005 Share Posted March 17, 2005 (edited) Im getting an unable to open file error right at this line: $file_in_handle = FileOpen("c:\temp\fonts.txt", 0) for some reason it's not launching regedit Edited March 17, 2005 by steveR AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass. Link to comment Share on other sites More sharing options...
GaryFrost Posted March 17, 2005 Author Share Posted March 17, 2005 try changing the line for the regedit command to: Run (@COMSPEC & ' /C ' & @WindowsDir & '\REGEDIT.exe /e ' & @ScriptDir & '\fonts.txt "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts"','',@SW_HIDE) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
steveR Posted March 17, 2005 Share Posted March 17, 2005 Nope same thing. I tried the command from the run box and it works, so im still trying to figure it out. AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass. Link to comment Share on other sites More sharing options...
Lazycat Posted March 17, 2005 Share Posted March 17, 2005 Seems I found where was the problem: in my localized windows this font have name "Times New Roman Полужирный" instead "Times New Roman Bold"! When I renamed it in the script, all become ok. So probably this is not safe using font names with variations... But this is not clarify wrong mapping. At home this font was happily mapped to something like Tahoma... I think this is normal. Probably something wrong with work windows... Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
GaryFrost Posted March 17, 2005 Author Share Posted March 17, 2005 (edited) Fixed the font problem, had changed one line to scriptdir forgot to change to the open to same Edited: Cleaned up some of the code. Edited2: Program re-named. see below post. Edited March 19, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted March 18, 2005 Author Share Posted March 18, 2005 Added dim statements, fixed array size for greens color selection SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted March 18, 2005 Author Share Posted March 18, 2005 (edited) Changed the name of the appColor/Font/Cursor Code WizardNow has 3 child window panessuggestions/criticism/bug reports are welcome.Enjoy.Edit, left out the code for the create gui font (fixed)Edit2 & Edit3, Edit4: see below postStarted topic under new project nameCFCCodeWizrd Topic Edited March 21, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted March 20, 2005 Author Share Posted March 20, 2005 Version 1.2 Control Id is now only 1 input box for Color/Font/Cursor centered above both the Color window and the Font/Cursor window suggestions/comments/bugs reports are welcome SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
buzz44 Posted March 20, 2005 Share Posted March 20, 2005 (edited) what i sed b4 about an inputbox ... some people .. ie me lol , like to look at a preview of what would actually be and see wat it looks like, yeah it shows the name of the colour on the name of the BG colour as the text but sum people might prefer to be able to edit that text and make it there own edit: about ur sig , what if u wrote sumthing so 'cleverly' u didnt need to debug it Edited March 20, 2005 by burrup qq 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