Jump to content
nacerbaaziz

cmd Unicode text maker

Recommended Posts

nacerbaaziz

Hi dear
With this script you can print Unicode text in the CMD screen
the script is  easy to use
just you  write the text that contains Unicode in the first input
and the script automatically reflect the code in the second input
 you can copy the text to the clipboard
or you can try printing the text in the CMD window
I apologize to everyone for colors and shape if not appropriate
I'm a blind man and I do not see
Thank you for your understanding
Greetings to all of youCmdUtM.au3

Share this post


Link to post
Share on other sites
jchd

Sorry to put it boldly, but I don't see the purpose and possible use of your code.

Edited by jchd
  • Thanks 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 here
RegExp tutorial: enough to get started
PCRE 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)

Share this post


Link to post
Share on other sites
VIP

I think it is junk code :|

#cs
    This script was designed by Nacer Baaziz from Algeria
    With this script you can print Unicode text in the CMD screen
    the script is  easy to use
    just you  write the text that contains Unicode in the first input
    and the script automatically reflect the code in the second input
    you can copy the text to the clipboard
    or you can try printing the text in the CMD window
    I apologize to everyone for colors and shape if not appropriate
    I'm a blind man and I do not see
    Thank you for your understanding
    You can contact me by e-mail below
    nacerStile@gmail.com
#ce
#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseUpx=y
#AutoIt3Wrapper_Res_Comment=unicode cmd text maker
#AutoIt3Wrapper_Res_Description=CMD Unicode Text Maker
#AutoIt3Wrapper_Res_Fileversion=1.0.0.0
#AutoIt3Wrapper_Res_LegalCopyright= ©2018, by nacer baaziz
#AutoIt3Wrapper_Res_Language=1033
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <AutoItConstants.au3>
#include <MsgBoxConstants.au3>
#include <file.au3>
#include <Clipboard.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GuiEdit.au3>
### the window ###
Local $GUI = GUICreate("cmd Unicode text maker")
GUICtrlCreateLabel("&original text", 0, 10, 100, 25)
Local $Input1 = GUICtrlCreateInput("", 110, 10, 200, 25)

GUICtrlCreateLabel("&Unicode text", 0, 50, 100, 25)
Local $Input2 = GUICtrlCreateInput("", 110, 50, 200, 25)
_GUICtrlEdit_SetReadOnly(-1, True)
Local $BT1 = GUICtrlCreateButton("&test", 0, 100, 50, 25)
Local $BT2 = GUICtrlCreateButton("&copy", 60, 100, 50, 25)
Local $BT3 = GUICtrlCreateButton("&Close", 120, 100, 50, 25)
###
GUISetState(@SW_SHOW, $GUI)
### the loop ###
While 1
    Switch GUIGetMsg()
        Case $GUI_event_close, $BT3
            Exit
        Case $Input1
            Local $Run = Run(@ComSpec & " /c cls & @echo off & echo " & GUICtrlRead($Input1), @SystemDir, @SW_HIDE, BitOR($STDERR_CHILD, $STDOUT_CHILD))
            Local $Text = ""
            While 1
                $Text = StdoutRead($Run)
                If @error Then ExitLoop
                GUICtrlSetData($Input2, $Text)
            WEnd
        Case $BT1
            If Not (GUICtrlRead($Input2) = "") Then
                Local $temp = _TempFile(@TempDir & "\", Default, ".cmd")
                FileWrite($temp, "cls" & @CRLF & "@echo off" & @CRLF & "title Unicode Test" & @CRLF & "echo " & GUICtrlRead($Input2) & @CRLF & "pause" & @CRLF & "exit")
                Run($temp)
                FileDelete($temp)
            EndIf
        Case $BT2
            If Not (GUICtrlRead($Input2) = "") Then
                _ClipBoard_SetData(GUICtrlRead($Input2))
                If Not @error Then
                    MsgBox(64, "result", "the unicode text was added to the ClipBoard", "", $GUI)
                Else
                    MsgBox(16, "result", "the unicode text can't be  added to the ClipBoard", "", $GUI)
                EndIf
            EndIf
    EndSwitch
WEnd
###

 

  • Like 1

Regards,
 

Share this post


Link to post
Share on other sites
JLogan3o13

@VIP With some of your entries on this forum I really don't think you have room to call anything anyone else posts "junk". If this Example is not something you find value in, keep scrolling.

@nacerbaaziz as jcdh points out above, perhaps you can add some context as to where/when you would see a use for this snippet. It may be something unique to your circumstances.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Jos
7 minutes ago, JLogan3o13 said:

@VIP With some of your entries on this forum I really don't think you have room to call anything anyone else posts "junk". If this Example is not something you find value in, keep scrolling.

 

@VIP,

It is sad to see you are repeating some of the behavior we have had a quit elaborate "talk" on and I am pretty sure I have also told you the consequences of not sticking to those borders I gave ...  Did you forget?

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
VIP

I'm sorry about that. I will continue scrolling.


Regards,
 

Share this post


Link to post
Share on other sites
nacerbaaziz

Thank you to all for your beautiful responses.
I repeat my apologies for the appearance of the window if it isn't in the proper form
I apologize if i commit an unintended violation.
I am Always in service
:)

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

  • Similar Content

    • DynamicRookie
      By DynamicRookie
      Hey There!
       
      So, what i need to do is an app that can read text in a image (I.e. a png that has text saying "This is a png" and return the text to a variable)
      I'm pretty much a newbie on AutoIt, my purpose is doing that but i don't know any function that can

      Any help is much appreciated
    • santoshM
      By santoshM
      How can i exit from a procedure in auto
      Func test() if x=o then     return endif endFunc  
    • Valnurat
      By Valnurat
      Hi
      Small question.
      I trying to find all index in an array with value higher than 7.
      How can that be possible?
    • TrashBoat
      By TrashBoat
      Could someone help me create or give an idea of how to do a incrementing for loop that would do this: https://i.imgur.com/YFUt47H.gifv
      I'm having a hard time figuring it out :S
    • msd1994
      By msd1994
      I have a script that just adds some keyboard shortcuts for things like displaying the current song and artist, moving the window to the side so it won't pop up in my way, and play/pause, next song, previous song (these are the only 3 to still work since they don't need the window handle.)
      In some update recently, Spotify's window class swapped from "[CLASS:SpotifyMainWindow]" to "[CLASS:Chrome_WidgetWin_0]". Using the new class in my controls doesn't seem to work, I've tried getting the window handle from the process handle (_GetHwndFromPID($PID)) but that seems to fail as well.
      Does anybody have some idea of a way I could get this script working again?
       
      edit: seems like discord has the same window class name, so could be some issue with this? Still not sure of a way to solve the issue though, I added a function to get the handle of the active window and can just use that now, but it was able to find it on its own before on spotify startup or script startup which would be preferred.
       
      Thanks!
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.