【问题标题】:How to send a new line without using `n `r? without an enter如何在不使用`n`r的情况下发送新行?没有输入
【发布时间】:2020-02-21 17:48:06
【问题描述】:

我知道 n 的意思是“回车”,但是当我使用 n, i dont want to press enter. I just want to put the text in a new line, but what "n” 时,它会插入一个新行,但它也会按回车键.. 我不想按回车键... 例如

::pergunta::Hello, n How are you? n what are you doing? n bye...

我该如何解决这个问题?

【问题讨论】:

  • 所以你想用 (backtick)n 创建新行,但是它按enter,这是在做别的事情吗?
  • 正确,我想使用n or something else without pressing the enter key... Because when i use n 将文本放入新行中,但它也会按回车键,例如发送消息

标签: variables autohotkey


【解决方案1】:

首先,您需要确定您的应用程序为此目的使用了哪些击键,然后您可以在 Autohotkey 中实现它。

例如,在 Excel 中,可以在一个单元格中键入多行文本,方法是在每行末尾按 ALT-ENTER(而不是 ENTER)。

因此,以下 AutoHotkey 脚本适用于 Excel:

:X:pergunta::Send, Hello,!{Enter}How are you?!{Enter}what are you doing?!{Enter}bye...

开头的“:X:”表示“运行脚本”,在本例中为“发送”命令。 !{Enter} 部分表示 ALT-ENTER。

您可能还想使用 SetKeyDelay 来加快文本的输入速度:

SetKeyDelay, 0
:X:pergunta::Send, Hello,!{Enter}How are you?!{Enter}what are you doing?!{Enter}bye...

【讨论】:

    猜你喜欢
    • 2012-04-26
    • 1970-01-01
    • 2018-09-07
    • 1970-01-01
    • 1970-01-01
    • 2013-09-30
    • 2022-12-17
    • 2018-03-06
    • 2011-02-26
    相关资源
    最近更新 更多