Skysnake Posted April 21, 2021 Share Posted April 21, 2021 (edited) The problem is simple I want to create a button with ⋮ three dot text. I cannot get this to work. expandcollapse popup#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.14.5 Author: Skysnake Script Function: Make a dot menu ⋮ https://util.unicode.org/UnicodeJsps/character.jsp?a=22EE https://codepoints.net/U+22EE?lang=en https://www.compart.com/en/unicode/U+22EE https://en.wikipedia.org/wiki/Ellipsis See Computer representations http://www.alanwood.net/demos/ansi.html #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here ConsoleWrite("Attempt to display 3 vertical dot menu text ⋮ " & @CRLF) ConsoleWrite(" ⋮ " & " ⋮ " & @CRLF) ConsoleWrite("0xE2 " & ChrW(0xEF) & @CRLF) ; UTF8 ConsoleWrite("0x8B " & ChrW(0x8B) & @CRLF) ConsoleWrite("0xAE " & ChrW(0xAE) & @CRLF) ConsoleWrite("0xAE " & ChrW("0xAE") & @CRLF) ConsoleWrite(" 5 " & @CRLF) ConsoleWrite("0xEF " & ChrW(0xEF) & @CRLF) ConsoleWrite("0xB8 " & ChrW(0xB8) & @CRLF) ConsoleWrite("0x99 " & ChrW(0x99) & @CRLF) ConsoleWrite(" 8 " & @CRLF) ConsoleWrite("U+22EE " & ChrW(0x22EE) & @CRLF) ;ConsoleWrite("“⋮” "&"⋮")&@CRLF) ConsoleWrite("22EE " & ChrW("22EE") & @CRLF) ConsoleWrite("0x22EE " & ChrW("0x22EE") & @CRLF) ConsoleWrite(" 11 " & @CRLF) ConsoleWrite("e28bae " & ChrW("e28bae") & @CRLF) ConsoleWrite("8942 " & ChrW("8942") & @CRLF) ConsoleWrite("0xE28BAE " & ChrW("0xE28BAE") & @CRLF) ConsoleWrite("65535 " & ChrW("65535") & @CRLF) ; --> last expected A unicode code in the range 0-65535 (e.g., 65 returns the capital letter A). ConsoleWrite(" 15 " & @CRLF) ConsoleWrite("205D " & ChrW("205D") & @CRLF) ; tricolon ConsoleWrite("2D57 " & ChrW("2D57") & @CRLF) ConsoleWrite("22EE " & ChrW("22EE") & @CRLF) ConsoleWrite("FE19 " & ChrW("FE19") & @CRLF) ; presentation form for vertical horizontal ellipsis ConsoleWrite(" 19 " & @CRLF) ;ConsoleWrite("Asc( ⋮ ) " & Asc(⋮) & @CRLF) ConsoleWrite("Asc(⋮) " & Asc("⋮") & @CRLF) ConsoleWrite("AscW(⋮) " & AscW("⋮") & @CRLF) ; recognizes the symbol ConsoleWrite("8942 " & ChrW(8942) & @CRLF) ; but prints a ? Output ; Output Attempt to display 3 vertical dot menu text ? ? ? 0xE2 ï 0x8B ? 0xAE ® 0xAE ® 5 0xEF ï 0xB8 ¸ 0x99 ? 8 U+22EE ? 22EE 0x22EE ? 11 e28bae 8942 ? 0xE28BAE 65535 ? 15 205D Í 2D57 22EE FE19 19 Asc(?) 63 AscW(?) 8942 8942 ? Edited April 21, 2021 by Skysnake Skysnake Why is the snake in the sky? Link to comment Share on other sites More sharing options...
Nine Posted April 21, 2021 Share Posted April 21, 2021 ConsoleWrite is not the best tool to show unicode characters, try with MsgBox or a GUI label. Skysnake 1 “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...
jchd Posted April 22, 2021 Share Posted April 22, 2021 Set SciTE console to UTF8 then: U_ConsoleWrite(ChrW("0x22EE") & @LF) ; same as U_ConsoleWrite("⋮" & @LF) ; Unicode-aware ConsoleWrite Func U_ConsoleWrite($s) ConsoleWrite(BinaryToString(StringToBinary($s & @LF, 4), 1)) EndFunc ;==>U_ConsoleWrite Skysnake 1 This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
Skysnake Posted April 24, 2021 Author Share Posted April 24, 2021 Thanks @jchd, as a matter of policy I have always used AutoIt with default settings. Where do I get the SciTE console settings? Skysnake Why is the snake in the sky? Link to comment Share on other sites More sharing options...
jchd Posted April 24, 2021 Share Posted April 24, 2021 (edited) Menu > Options > Open User Options File and add/change settings so that a good Unicode fixed-sized font is used (<== 1) and UTF8 encoding is used (<== 2). I also set UTF8 (65001) as .au3 files encoding (<== 3). These are protected user options which survive SciTE4AutoIt3 updates and reinstalls unless you delete/overwrite SciTEUser.properties. expandcollapse popupimport au3.UserUdfs import au3.keywords.user.abbreviations font.base=font:Verdana,size:10,$(font.override) font.monospace=font:DejaVu Sans Mono,size:11 <=========== 1 proper.case=1 use.tabs=1 indent.size=4 indent.size.*.au3=4 tabsize=4 style.au3.32=style.*.32=$(font.base),back:#F0F4F9 caret.line.back=#FFFED8 selection.fore=#006000 selection.alpha=50 selection.back=#F0A0A8 style.au3.34=fore:#0000FF,back:#F0F4F9 style.au3.35=fore:#008000,italics,back:#F0F4F9 style.au3.0=fore:#000000,back:#F0F4F9 style.au3.1=fore:#008000,italics,back:#F0F4F9 style.au3.2=fore:#008000,italics,back:#F0F4F9 style.au3.3=fore:#0000FF,back:#F0F4F9 style.au3.4=fore:#000090,back:#F0F4F9 style.au3.5=fore:#0000FF,back:#F0F4F9 style.au3.6=fore:#808000,back:#F0F4F9 style.au3.7=fore:#FF0000,back:#F0F4F9 style.au3.8=fore:#FF8000,back:#F0F4F9 style.au3.9=fore:#5A5A5A,back:#F0F4F9 style.au3.10=fore:#808080,back:#F0F4F9 style.au3.11=fore:#808000,back:#F0F4F9 style.au3.12=fore:#DC143C,back:#F0F4F9 style.au3.13=fore:#FF0000,back:#F0F4F9 style.au3.14=fore:#993399,back:#F0F4F9 style.au3.15=fore:#0080FF,back:#F0F4F9 openpath.$(au3)=$(SciteDefaultHome)\..\include; error.inline=1 code.page=65001 <========== 2 output.code.page=65001 <========== 2 user.shortcuts=\ Ctrl+KeypadPlus|IDM_EXPAND|\ Ctrl+KeypadMinus|IDM_BLOCK_COMMENT| #NewFileEncoding=CodePage/UTF8/UTF8BOM/UTF16BE/UTF16LE NewFileEncoding=UTF8 <========== 3 utf8.auto.check=4 <========== 3 title.full.path=1 Edited April 25, 2021 by jchd Skysnake 1 This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) 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