Hallo,
ich versuche meinen String in einen ANSI Code umzuwandeln.
Wenn ich meinen String zu einem ANSI Code machen möchte, dann benutze ich zuerst StringToASCIIArray und bekomme dann einen Unicode zurück, welchen ich wieder zu Zeichen konvertieren möchte, also zu einem ANSI Code.
Hier mal mein Versuch
Spoiler anzeigen
#Include <GuiEdit.au3>
#Include <Array.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
$Name = GUICtrlCreateLabel("Name", 8, 8, 32, 17)
$Input1 = GUICtrlCreateInput("", 56, 8, 121, 21)
$generate = GUICtrlCreateButton("generate", 192, 8, 75, 25)
$HashVNum = GUICtrlCreateLabel("ANSI", 8, 48, 58, 17)
$Input2 = GUICtrlCreateInput("", 80, 48, 121, 21)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $generate
$T = GuiCtrlRead($Input1)
$ANSI = StringToASCIIArray($T,0,StringLen($T),1) ; ANSI Code in Binärformat konvertieren
_ArrayDisplay($ANSI)
For $i = 0 to Ubound($ANSI) - 1
_GUICtrlEdit_AppendText($Input2,BinaryToString($ANSI[$i]))
Next
EndSwitch
WEnd
Hat jemand eine Ahnung, wieso es nicht funktioniert? Also ich möchte solche Zeichen daraus machen :
€
‚
ƒ
‡
‰
Š
‹
Œ