在VBS的NOOB,需要你的帮助请。 [英] NOOB in VBS, need your help PLEASE.

查看:85
本文介绍了在VBS的NOOB,需要你的帮助请。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我是vbs脚本的新手,只是为VBS开始上课。我只是盯着系统工程师而且我正忙于SCCM 2012.我正在添加一个应用程序,但我想要一个应用程序的AUTO填写表格。



我'我创建了这个vbs脚本来自动填充地址字段:
$


我只需要填写一个IP地址,有人可以帮我吗? />


Dim wshShell

'设置shell

设置wshShell = WScript.CreateObject(" WScript.Shell" )

'运行应用程序(额外的"s以防万一路径有空格)

wshShell.Run"""C:\Program Files(x86 )\ Taknet \Takclient \Takclient.exe"""

'确保应用程序处于活动状态

wshShell.AppActivate"Takclient"

'发送凭证

WshShell.SendKeys"连接名称"

WshShell.SendKeys" {TAB}"

WshShell.SendKeys"服务器地址"

WshShell.SendKey s" 212.88.238.237:10443"

WshShell.SendKeys" {ENTER}"



感谢您的帮助:-)

解决方案

你好,



TechNet Wiki论坛是TechNet Wiki的一个地方社区参与,质疑,组织,辩论,帮助,影响和培养TechNet Wiki内容,平台和社区。

请注意,此论坛的存在是为了讨论TechNet Wiki作为技术/应用程序。


由于这是偏离主题的,我正在将问题转移到
官方脚本专家论坛!


Karl



Hi all, i am new in vbs scripting, just starting evening classes for VBS. I just stared as a system engineer and I am busy in SCCM 2012. I am adding an application but I would like an AUTO fill form for an application.

I've create this vbs script to auto fill the Address field:

There is only 1 field that I have to fill with an IP address, can someone help me?

Dim wshShell
' Set up the shell
Set wshShell = WScript.CreateObject( "WScript.Shell" )
' Run the application (extra "s are in case path has spaces)
wshShell.Run """C:\Program Files (x86)\Taknet\Takclient\Takclient.exe"""
' Make sure the application is active
wshShell.AppActivate "Takclient"
' Send credentials
WshShell.SendKeys "Connection Name"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "Server Address"
WshShell.SendKeys "212.88.238.237:10443"
WshShell.SendKeys "{ENTER}"

Thanks for your help :-)

解决方案

Hello,

The TechNet Wiki Discussion Forum is a place for the TechNet Wiki Community to engage, question, organize, debate, help, influence and foster the TechNet Wiki content, platform and Community.

Please note that this forum exists to discuss TechNet Wiki as a technology/application.

As it's off-topic here, I am moving the question to The Official Scripting Guys Forum!

Karl


这篇关于在VBS的NOOB,需要你的帮助请。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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