How to send formatted text to textbox Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
need4speed
Posts: 143
Joined: 22 Apr 2016, 06:50

How to send formatted text to textbox

21 Jul 2020, 07:03

for some reason the text is send in a single line, while I like to keep the formatting.

Code: Select all

Gui Add, Edit, w400 h400
gui, show, ,Test
Return

q::
	string =
	(
	Title
	text 
	
	Subtitle
	more text
	)
      ControlSetText, Edit1, %string%, Test
return
I tried to use ControlSend, but it did not work either.
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: How to send formatted text to textbox  Topic is solved

21 Jul 2020, 07:11

Code: Select all

Gui, Add, Edit, w400 h400 vEdit1
Gui, Show, ,Test
Return

q::
	string =
	(LTrim
	Title
	text 
	
	Subtitle
	more text
	)
      GuiControl,, Edit1,% string
return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Ineedhelplz, Spawnova and 253 guests