Jump to content

Calling AutoIt script via WinRM


 Share

Recommended Posts

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.

 

 

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...