Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sending multiple lines of text
#10
Single-line text doesn't have line breaks, whereas multiline text defaults to line breaks. Therefore, defaulting to multiline is feasible.

e2.SendKeys is more stable to use than keys.sendt  and Ctrl+V

Because sometimes the window loses focus, resulting in text sending failure.

My apologies for the misunderstanding. The "SendKeys" function below inherently supports multiline text by default(TextShiftEnter = true).


var e2 = w.Elm["web:TEXT", "Message ChatGPT…"].Find(1);
e2.MouseClick(); e2.SendKeys("Ctrl+A", $"!{text}");


Messages In This Thread
Sending multiple lines of text - by Davider - 03-08-2024, 05:07 AM
RE: Sending multiple lines of text - by Davider - 03-08-2024, 05:52 AM
RE: Sending multiple lines of text - by Gintaras - 03-08-2024, 05:59 AM
RE: Sending multiple lines of text - by Gintaras - 03-08-2024, 06:40 AM
RE: Sending multiple lines of text - by Davider - 03-08-2024, 07:08 AM
RE: Sending multiple lines of text - by Gintaras - 03-08-2024, 09:28 AM
RE: Sending multiple lines of text - by Gintaras - 03-09-2024, 07:39 AM
RE: Sending multiple lines of text - by Davider - 03-28-2024, 08:58 AM
RE: Sending multiple lines of text - by Gintaras - 03-28-2024, 09:13 AM
RE: Sending multiple lines of text - by Davider - 03-28-2024, 09:16 AM
RE: Sending multiple lines of text - by Gintaras - 03-28-2024, 09:28 AM
RE: Sending multiple lines of text - by Davider - 03-30-2024, 10:35 AM
RE: Sending multiple lines of text - by Gintaras - 03-30-2024, 12:09 PM
RE: Sending multiple lines of text - by Davider - 03-30-2024, 02:00 PM

Forum Jump:


Users browsing this thread: 7 Guest(s)