Jump to content
Sign in to follow this  
GaryFrost

HexCodeWizard

Recommended Posts

GaryFrost

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 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.

 

Share this post


Link to post
Share on other sites
Radsam

This is really handy. :D

Could you possibly put the "$" in automatically for the Control ID edit box? :) . Would save a bit of typing.

Share this post


Link to post
Share on other sites
GaryFrost

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 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.

 

Share this post


Link to post
Share on other sites
GaryFrost

Fixed bug with create GUICtrlSetBkColor

Deleted this attachment see my last post for attachment

Edited 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.

 

Share this post


Link to post
Share on other sites
buzz44

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

Share this post


Link to post
Share on other sites
GaryFrost

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 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.

 

Share this post


Link to post
Share on other sites
GaryFrost

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 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.

 

Share this post


Link to post
Share on other sites
GaryFrost

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 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.

 

Share this post


Link to post
Share on other sites
steveR

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 by steveR

AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass.

Share this post


Link to post
Share on other sites
GaryFrost

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.

 

Share this post


Link to post
Share on other sites
Lazycat

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...

Share this post


Link to post
Share on other sites
GaryFrost

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 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.

 

Share this post


Link to post
Share on other sites
GaryFrost

Changed the name of the app

Color/Font/Cursor Code Wizard

Now has 3 child window panes

suggestions/criticism/bug reports are welcome.

Enjoy.

Edit, left out the code for the create gui font (fixed)

Edit2 & Edit3, Edit4: see below post

Started topic under new project name

CFCCodeWizrd Topic

Edited 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.

 

Share this post


Link to post
Share on other sites
GaryFrost

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.

 

Share this post


Link to post
Share on other sites
buzz44

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 :D

Edited by burrup

qq

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×