function Window.SetEntryText(F,Y)Entry.TextBox.Text=Y if F:IsVisible()then Entry.TextBox:CaptureFocus()Entry.TextBox.CursorPosition=#Y+1 end end
--- Sets the text in the command bar text box, and captures focus
function Window:SetEntryText(text)
	Entry.TextBox.Text = text

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