Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Скриптовые языки администрирования Windows (http://forum.oszone.net/forumdisplay.php?f=102)
-   -   [решено] с nircmd ввести пароль в voyager.exe (http://forum.oszone.net/showthread.php?t=281995)

mamont1 08-05-2014 17:12 2348927

с nircmd ввести пароль в voyager.exe
 
не осилил далее
Код:

nircmd.exe exec show "путь к\voyager.exe" (запуск voyager-ра - всё ок)
nircmdc.exe sendkey 1 press (тут ввожу пароль 12wert -  - всё ок)
nircmdc.exe sendkey 2 press
nircmdc.exe sendkey w press
nircmdc.exe sendkey e press
nircmdc.exe sendkey r press
nircmdc.exe sendkey t press (тут ввожу пароль 12wert -  - всё ок)



а, кнопочку ОК - не врублюся, как жмакнуть?

morozoff 08-05-2014 18:15 2348962

Цитата:

Цитата mamont1
а, кнопочку ОК - не врублюся, как жмакнуть? »

mamont1, Думаю, можно через нажатие клавиши Enter. Вот так:
Код:

nircmd.exe sendkey enter press

mamont1 08-05-2014 20:12 2349017

morozoff, факт, оно.
Код:

CD /D %~dp0
nircmdc.exe exec show "voyager.exe" /NOLOGO
nircmdc.exe sendkey 1 press
nircmdc.exe sendkey 2 press
nircmdc.exe sendkey w press
nircmdc.exe sendkey e press
nircmdc.exe sendkey r press
nircmdc.exe sendkey t press
nircmdc.exe sendkey enter press

и так то-же работает
Код:

nircmdc.exe sendkeypress 1 2 w e r t enter


Время: 02:33.

Время: 02:33.
© OSzone.net 2001-