function Window.SetEntryText(J,D)Entry.TextBox.Text=D if J:IsVisible()then Entry.TextBox:CaptureFocus()Entry.TextBox.CursorPosition=#D+1 end end

function Window:SetEntryText(text)
	Entry.TextBox.Text = text

	if self:IsVisible() then
		Entry.TextBox:CaptureFocus()
		Entry.TextBox.CursorPosition = #text + 1
	end
end
