leahkim23

Calling AutoIt script via WinRM

3 posts in this topic

Hi Everyone,

I am trying to call an AutoIT script which does a login into an application GUI, then do navigation, from a linux server through WinRM. If I run the script locally, no issues, but if I call it from linux through winRM, it breaks on the _IEaction command.

The question that I have is does anyone encountered this issue before, or have tried this approach.  The script has 2 _IEaction and it only fails on one of it.

Local $loadpackagebutton = _IEGetObjByName ($oIE, "LoadPackageButton")
Local $oForm = _IEFormGetObjByName($oIE, "PackageManagementForm")
_IEFormElementRadioSelect ($oForm, $CmdLine[1], "selectedPackageID")
    _IEAction ($loadpackagebutton, "click")

 

Thanks in advance AutoIt masters.

 

 

Share this post


Link to post
Share on other sites



can you start IE thru winRM on linux?

Share this post


Link to post
Share on other sites

Thanks @AutoBert. Found the solution to my problem. _IEaction does click the loadpackagebutton. The problem that I have is with the other script which is called by main script. The problem is that because I am running the script in background, there is no active window. So I just replaced winactive with winexist.

Anyways. Thanks

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now