Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Issues sending characters to command line.

$
0
0
Hi All,

I've been wrestling with this for a few days now and would appreciate a bit of direction.

I'm trying to automate Adobe's AUSST, which syncs a local server with Adobe's updates, much like Microsoft's WSUS.

In their infinite wisdom, their AUSST tool is menu driven from the command line.  No parameters exist... other than to specify the root directory. You have to type in a "2" and hit Enter, wait for the sync (could be quite long depending on the amount/size of updates available, no updates available still takes over a minute), then enter "4", hit ENTER to close.

So,  here's what I've got currently (I've tried myriad other things)


AutoItSetOption("WinTitleMatchMode", 3)

;due to issues i had with necessary quotes in the launch parameter
local $parm = " --root=""C:\inetpub\www2root\AdobeUpdate\oobee"""

;execution does work, so I'm good to this point
ShellExecute('C:\inetpub\wwwroot\AdobeUpdate\AdobeUpdateServerSetupTool2.0.exe', $parm )

;make sure it is ready for input
sleep(4500)

;test for active
if WinWaitActive("C:\inetpub\wwwroot\AdobeUpdate\AdobeUpdateServerSetupTool2.0.exe") Then

   ;send commands
   Send("2", 1) 
   Send("{ENTER}",1)

   ;let me know an attempt was made
   msgbox (0, "sent", "sent")

EndIf



I plan on doing a very long sleep in place of the msgbox, and then doing the "4" and {ENTER} to quit.

I tried ControlCommand things, and ran into some issues with ControlID (seems it changes for every launch).  

if it helps, this is on a Windows2k8 r2 x64 server.

Thanks!

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>