wnd.switchActiveWindow();
300.ms();
string R = """
hello:
world?
Hi!
""";
keys2.SendTextWithShiftEnter(R);
static class keys2 {
/// <summary>
/// Sends text like <see cref="keys.sendt"/>. For newlines sends <c>Shift+Enter</c> inetead of <c>Enter</c>.
/// </summary>
/// <param name="s"></param>
public static void SendTextWithShiftEnter(string s) {
var k = new keys(opt.key);
foreach (var m in s.RxFindAll(@"(.+)|\R")) {
var v = m.Value;
if (m[1].Exists) k.AddText(m.Value); else k.AddKeys("Shift+Enter");
}
k.SendNow();
}
}
Sending multiple lines of text
|
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)