如何在vbs中将多个键发送到记事本 [英] How to send multiple keys to notepad in vbs

查看:81
本文介绍了如何在vbs中将多个键发送到记事本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生

我创建了用于将密钥发送到记事本的vb..

代码是:

sir

i created the vbs for sending keys to the notepad..

code is:

set wshshell = CreateObject("wscript.shell")
dim w
w = wshshell.AppActivate("notepad")
wshshell.sendkeys" "
wshshell.sendKeys"%{f} ^{p}"
wshshell.sendkeys"^{p}"



但问题只发送第一把钥匙..

如何发送更多密钥..

我想启用和禁用自动换行..

我该怎么做..



but the prob is is sending first keys only..

how to send more key..

i want to enable and disable the wordwrap..

how can i do it..

推荐答案

尝试通过将特殊的键代码(例如Alt键等)括在大括号{}中.
Try by enclosing special key codes (for Alt key etc) in braces {}.


这篇关于如何在vbs中将多个键发送到记事本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆