Jump to content

VBscript to AutoIT


Recommended Posts

Please guide how we can convert below mentioned part of script to AUTOIt.

Sub ProcessOptions

Set MyForm = document.dbx

If MyForm.DisplayAll.Checked Then DisplayAll= MyForm.DisplayAll.Value

If MyForm.DisplayEthernet.Checked Then DisplayEthernet= MyForm.DisplayEthernet.Value

If MyForm.VersionN.Checked Then VersionN= MyForm.VersionN.Value

If MyForm.TermiNate.Checked Then TermiNate= MyForm.TermiNate.Value

If MyForm.UseNumeric.Checked Then UseNumeric = MyForm.UseNumeric.Value

If MyForm.ByProtocol.Checked Then ByProtocol = MyForm.ByProtocol.Value

If MyForm.IncludePID.Checked Then IncludePID = MyForm.IncludePID.Value

If MyForm.PCName.Checked Then

PCname = MyForm.PCName.Value

PCid= MyForm.PCid.Value & " "

End If

If MyForm.UserName.Checked Then

UserName = MyForm.UserName.Value

UserID= MyForm.UserID.Value & " "

End If

If MyForm.UPwd.Checked Then

UPwd = MyForm.UPwd.Value

PassWd= MyForm.PassWd.Value & " "

End If

If MyForm.AppFile.Checked Then AppFile= MyForm.AppFile.Value

If MyForm.AppFile.Checked Then

AppFile = MyForm.AppFile.Value

FileIn= MyForm.FileIn.Value & " "

End If

If MyForm.ShowConnections.Checked Then

ShowConnections = MyForm.ShowConnections.Value

ConProtocol= MyForm.ConProtocol.Value & " "

End If

If MyForm.Pause.Checked Then Interval = MyForm.Interval.Value & " "

Call RunCommand

End Sub 'ProcessOptions

Sub RunCommand

Param1 = DisplayAll & DisplayEthernet & UseNumeric & ByProtocol & IncludePID & ShowConnections & ConProtocol & Interval & PCName & PCid & UserName & UserID & UPwd & PassWd & VersionN & TermiNate & AppFile & FileIn

Thanks in advance..

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...