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

Issue with Regaining Window GUI access

$
0
0
Hi,

I am running an XmlRpc client/server program, in which the Client side python code triggers the Autoit script("kumar.exe") which is to perform an application installation.

Autoit script is in server side and it is triggered from client machine.

here when the autoit script gets triggered , the installation setup window loses it's control and hence the installation is not proceeding.

Can anyone help in solving this problem ??


Client side python code:
-----------------------------------------------------------------------------------------------------------------

import xmlrpclib
import sys

proxy = xmlrpclib.ServerProxy('http://'+sys.argv[1]+':8001')

#print ("AutoIT script trigger output %s" % str(proxy.ads_trigger("c:\Sharing\kumar.exe")))
get_line =  proxy.ads_trigger("c:\Sharing\kumar.exe")
out_file = open(r"c:\builds\ads-log248.txt", "w")
out_file.write("%s" %(get_line))
out_file.close(
---------------------------------------------------------------------------------------------------------------



AutoIT Script code:
---------------------------

#include <Process.au3>
#Include <GuiToolBar.au3>
#include <GUIConstantsEx.au3>

ADS_Install()
Exit


Func ADS_Install()
  RunAsWait("Administrator", "", "Emc@123", 0, "C:\Sharing\abcd.exe")
  WinWaitActive($val, "Welcome to the Avamar Downloader")
  Send("{ENTER}")
  WinWaitActive($val, "Install Avamar Downloader")
  Send("{ENTER}")
  WinWaitActive($val, "&Install")
  Send("{ENTER}")
  WinWaitActive($val, "&Finish")
  Send("{ENTER}")
EndFunc

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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