Opened 11 years ago
Last modified 10 years ago
#2626 closed Bug
ControlGetText wrong encoding for some words. — at Initial Version
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Milestone: | 3.3.13.3 | Component: | AutoIt |
Version: | 3.3.11.2 | Severity: | None |
Keywords: | Cc: |
Description
$gui=GUICreate("", 200, 100) $id1=GUICtrlCreateCheckbox("Выполнение приложений", 5, 5) $id2=GUICtrlCreateInput("Включить в группу", 5, 35) $id3=GUICtrlCreateLabel("Сохранять пропорции", 5, 65) GUISetState() ConsoleWrite(ControlGetText($gui, "", GUICtrlGetHandle($id1)) & @LF) ConsoleWrite(ControlGetText($gui, "", GUICtrlGetHandle($id2)) & @LF) ConsoleWrite(ControlGetText($gui, "", GUICtrlGetHandle($id3)) & @LF) Do Until GUIGetMsg() = -3
In console and in Autoit v3 Windows Info on Visible Text tab the encoding of this text is wrong and show this:
K?>;=5=85
:;NG8BL
!>E@0=OBL
$text = ControlGetText($gui, "", GUICtrlGetHandle($id1)
$array = StringToASCIIArray($text)
array is:
Row|Col 0
[0]|18
[1]|4
[2]|75
[3]|4
[4]|63
[5]|4
[6]|62
[7]|4
[8]|59
[9]|4
[10]|61
[11]|4
[12]|53
[13]|4
[14]|61
[15]|4
[16]|56
[17]|4
[18]|53
[19]|4
[20]|32
But if now change id1 text to Выполнение приложений2 or add a couple of characters of any kind, for example Выполнение приложенийblabla or Выполнение the text begins to determine the correct.