dima_support 0 Posted 2008-07-09 20:00:39 Share Posted 2008-07-09 20:00:39 Вот вопрос, кто подкинет скрипт, или подскажет что в этом не так Dim objShell, sName, sHost Set objShell = WScript.CreateObject("WScript.Shell") sName = "COMPANY NAME" sHost = "IP ADDRESS OR HOST NAME" With objShell .Run "Control ncpa.cpl" wscript.sleep 2000 .AppActivate "Network Connections" wscript.sleep 1000 .SendKeys "%FN" wscript.sleep 1000 .SendKeys "%N" wscript.sleep 1000 .SendKeys "%ON" wscript.sleep 1000 .SendKeys "%VN" wscript.sleep 1000 .SendKeys "%A" & sName & "%N" wscript.sleep 1000 .SendKeys "%DN" wscript.sleep 1000 .SendKeys "%H" & sHost & "%N" wscript.sleep 1000 .SendKeys "%AN" wscript.sleep 1000 .SendKeys "%S" wscript.sleep 1000 .SendKeys "{TAB}{TAB}~" wscript.sleep 1000 .SendKeys "{ESC}" ' .AppActivate "Connect " + sName ' .SendKeys "%{F4}" End With Камнями не кидать, я не програмист, а бейсик я еще 10 лет назад чтото как то проходил Link to post Share on other sites
dima_support 0 Posted 2008-07-10 12:04:42 Author Share Posted 2008-07-10 12:04:42 Что никто вобще не может подсказать Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now