﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2138	GuiCtrlRead with GUICtrlSendToDummy	stroket@…	Valik	"GuiCtrlRead(Dummy Ctrl-ID Set By GUICtrlSendToDummy) returns a deformed version of the string used in GUICtrlSendToDummy.
{{{
#include <GUIConstants.au3>

local $sTest = ""Test String Variable""
local $GUI = GuiCreate(""Bug"", 128, 64), $MSG
local $BTN = GuiCtrlCreateButton($sTest, 0, 0, 128, 64)
local $DUM = GuiCtrlCreateDummy()
GuiSetState()
while 1
	$MSG = GuiGetMsg()
	switch $MSG
		case $GUI_EVENT_CLOSE
			exit
		case $BTN ; Press the button multiple times
			GUICtrlSendToDummy($DUM, String($sTest)) ; Only seems to happen with variables that are strings.
			; Doesn't seem to cause the bug by just using $sTest, but directly putting in a string
			; (or using the string function) will cause the string to become sexualized.
			; GuiCtrlRead is what actually causes the problem.
		case $DUM
			$sTest = GuiCtrlRead($DUM)
			GuiCtrlSetData($BTN, $sTest) ; Rename the button.
			ConsoleWrite($sTest & @CRLF)
	endswitch
wend
}}}"	Bug	closed	3.3.9.1	AutoIt	3.3.8.1	None	Fixed	Dummy GUICtrlSendToDummy GUI	stroket@…
