Jump to content

HexCodeWizard


GaryFrost
 Share

Recommended Posts

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.

 

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...