arduino - Inconsistent sendkey with batch file -
I am trying to create a batch file that will be called from another program, but sendkey works properly Can not get to. It calls the zune and opens it but sends ctrl + p to start the play. If I have to open the zoo and the batch file starts again it will eventually start playing but I have to walk a batch 10 times in a row, not sure why it is so. idea?
@echo off setlocal start zune.exe Call: SendCtrlP "Name in Window Title": SendCtrlP & lt; App & gt; Setlocal set vbs =% Temp% \ _ vbs>% vbs% echo set s = CreateObject ("wscript.Shell") & gt; & Gt;% vbs% echo s.appactivate "% ~ 1" & gt; & Gt;% vbs% Echo s.sendkeys "^ p" cscript // nologo% vbs% if present,% vbs% del / f / q% vbs% exit / b
Comments
Post a Comment