<script type="text/javascript">$(function(){0<=window.navigator.userAgent.toLowerCase().indexOf("ucbrowser")&&CaoNiMaDeUc()})</script> </head> <body> <h1>#Hotstring</h1> <p>改变<a href="../Hotstrings.htm">热字串</a>的选项或终止符.</p> <pre class="Syntax"><span class="func">#Hotstring</span> NoMouse <span class="func">#Hotstring</span> EndChars NewChars <span class="func">#Hotstring</span> NewOptions</pre> <h2 id="Parameters">参数</h2> <dl> <dt>NoMouse</dt> <dd> <p>类型: <a href="../Concepts.htm#strings">字符串</a></p> <p>阻止鼠标点击重置热字串识别器, 如<a href="../Hotstrings.htm#NoMouse">这里</a>描述. 副作用是, 这样也阻止了热字串需要的<a href="InstallMouseHook.htm">鼠标钩子</a>(尽管如果脚本因其他目的(如鼠标热键) 需要鼠标钩子, 它仍然会被安装). 在脚本的任意位置使用 <code>#Hotstring NoMouse</code> 会影响所有的热字串, 而不只是影响在它后面的那些.</p> </dd> <dt>EndChars NewChars</dt> <dd> <p>类型: <a href="../Concepts.htm#strings">字符串</a></p> <p>指定单词 EndChars 后跟着单个空格和新的终止符. 例如:</p> <pre>#Hotstring EndChars -()[]{}':;"/\,.?!`n `t</pre> <p>由于新的结束字符在整个脚本中都是全局有效的 -- 不管 EndChars 指令出现在哪里 -- 所以不需要多次指定 EndChars.</p> <p>结束符的最大数目是 100. 超出此长度的字符被忽略.</p> <p>要让 tab 成为终止符, 请在列表中包含 `t. 要让空格成为终止符, 请在列表的其他两个字符中间包含空格(如果列表中除空格外只包含一个或不包含其他字符, 那么要把空格放在列表的开始处).</p> </dd> <dt>NewOptions</dt> <dd> <p>类型: <a href="../Concepts.htm#strings">字符串</a></p> <p>指定新选项, 如 <a href="../Hotstrings.htm#Options">Hotstring 选项</a>中描述的那样. 例如: <code>#Hotstring r s k0 c0</code>.</p> <p>与上面的 <em>EndChars</em> 不同, 当以这种方式使用时, #Hotstring 指令是与位置有关的. 换句话说, 脚本中的多个热字串可以具有不同的默认选项, 如下例所示:</p> <pre>::btw::by the way #Hotstring r c <em>; 后面的所有热字串会使用 "send raw" 且默认区分大小写.</em> ::al::airline ::CEO::Chief Executive Officer #Hotstring c0 <em>; 让从这里往后的所有热字串不区分大小写.</em></pre> </dd> </dl> <h2 id="Remarks">备注</h2> <p>和其他指令一样, #Hotstring 不能有条件地执行.</p> <h2 id="Related">相关</h2> <p><a href="../Hotstrings.htm">热字串</a></p> <p>当脚本运行时, 可以使用 <a href="Hotstring.htm">Hotstring</a> 函数更改热字串选项.</p> </body> </html>