mesale0077 Posted January 1, 2011 Share Posted January 1, 2011 (edited) hi hearts or spades or diams or clubs characters how is it this characters show on label or button? thank you Edited January 1, 2011 by mesale0077 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 1, 2011 Moderators Share Posted January 1, 2011 mesale0077,Use a font with the suit symbols in it! #include <GUIConstantsEx.au3> $hGUI = GUICreate("Test", 500, 500) GUISetFont(120, Default, Default, "Symbol") GUICtrlCreateLabel("ª", 10, 10, 230, 230) GUICtrlCreateLabel("©", 260, 10, 230, 230) GUICtrlSetColor(-1, 0xFF0000) GUICtrlCreateLabel("¨", 10, 260, 230, 230) GUICtrlSetColor(-1, 0xFF0000) GUICtrlCreateLabel("§", 260, 260, 230, 230) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEndThe Symbol font should be installed with all Windows OSs. Happy New Year! M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
mesale0077 Posted January 1, 2011 Author Share Posted January 1, 2011 hi thank you Happy New Year Link to comment Share on other sites More sharing options...
UEZ Posted January 1, 2011 Share Posted January 1, 2011 (edited) What about this: #include <GUIConstantsEx.au3> $hGUI = GUICreate("ISO 8859-1 Code Table Characters", 250, 100) $label = GUICtrlCreateLabel("♠♣ ♥ ♦", 0, 0, 250, 50) GUICtrlSetFont(-1, 40) $button = GUICtrlCreateButton("Δεμω", 100, 60, 50) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE, $button Exit EndSwitch WEnd Br, UEZ Edited January 2, 2011 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
UEZ Posted January 2, 2011 Share Posted January 2, 2011 Hmmm, seems to be a problem with the browser when you copy the code and paste it to SciTE. This is what I get when I run it: Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Developers Jos Posted January 2, 2011 Developers Share Posted January 2, 2011 (edited) You need to paste the code into a script file set as ANSI and then change to UTF8 which will show the Unicode characters. (At least that is how it worked for me... the Clubs didn't show up correctly but the rest did.) Jos Edited January 2, 2011 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
UEZ Posted January 2, 2011 Share Posted January 2, 2011 Try to copy it from here: http://autoit.pastebin.com/7svM9m8Q or from attached script Br, UEZTest.au3 Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
mesale0077 Posted June 15, 2012 Author Share Posted June 15, 2012 hi #include <GUIConstantsEx.au3> $hGUI = GUICreate("Test", 500, 500) GUISetFont(50, Default, Default, "Symbol") GUICtrlCreateLabel("ª"&"autoit ", 10, 10, 230, 230) GUICtrlCreateLabel("©", 260, 10, 230, 230) GUICtrlSetColor(-1, 0xFF0000) GUICtrlCreateLabel("¨", 10, 260, 230, 230) GUICtrlSetColor(-1, 0xFF0000) GUICtrlCreateLabel("§", 260, 260, 230, 230) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd ;GUICtrlCreateLabel("ª"&"autoit ", 10, 10, 230, 230) dont work why? Link to comment Share on other sites More sharing options...
BrewManNH Posted June 15, 2012 Share Posted June 15, 2012 What doesn't work? It's working for me, except the "autoit" is cut off due to the label size being too small. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
nitekram Posted June 15, 2012 Share Posted June 15, 2012 I thank you for this - I am going to add this to my Texas Holdem trainer, tonight. 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator Link to comment Share on other sites More sharing options...
mesale0077 Posted June 16, 2012 Author Share Posted June 16, 2012 hi look code comes in different fonts #include <GUIConstantsEx.au3> $hGUI = GUICreate("Test", 500, 500) GUISetFont(20, Default, Default, "Symbol") GUICtrlCreateLabel("ª I love you ª ", 10, 10, 230, 230) ;comes in different fonts GUICtrlCreateLabel("©", 260, 10, 230, 230) GUICtrlSetColor(-1, 0xFF0000) GUICtrlCreateLabel("¨", 10, 260, 230, 230) GUICtrlSetColor(-1, 0xFF0000) GUICtrlCreateLabel("§", 260, 260, 230, 230) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Link to comment Share on other sites More sharing options...
BrewManNH Posted June 16, 2012 Share Posted June 16, 2012 Of course it does, you told the script to use the symbol font for the default font. What were you expecting? You need to make multiple labels and use the correct font for the labels if you want to mix text and the symbol font. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator 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