Jump to content

Recommended Posts

Posted

Hi,

I've begun the automation of incredible features of STATISTICA package from http://www.statsoft.com

on AutoItGroup.

The AutoIt3 package will have the following library modules (wrap code of STATISTICA object model):

AStatBasic.au3

AStatCanonical.au3

AStatCluster.au3

AStatCorrespondence.au3

AStatDiscriminant.au3

AStatExperimental_Design.au3

AStatFactor.au3

AStatGeneralized_Additive_Models.au3

AStatGeneralized_Linear_Nonlinear.au3

AStatGeneral_Classification_and_Regression_Trees.au3

AStatGeneral_Discriminant_Analysis.au3

AStatGeneral_Linear_Models.au3

AStatGeneral_Regression_Models.au3

AStatLog-Linear.au3

AStatMANOVA.au3

AStatMultidimensional_Scaling.au3

AStatNonlinear_Estimation.au3

AStatNonparametrics.au3

AStatPartial_Least_Squares.au3

AStatPower_Analysis.au3

AStatProcess_Analysis.au3

AStatQuality_Control.au3

AStatQuick_Classification_Trees.au3

AStatRegression.au3

AStatReliability.au3

AStatSEPATH.au3

AStatSurvival_Analysis.au3

AStatTime_Series.au3

AStatVariance_Components.au3

AStatCreationObjects.au3

AStatGraph.au3

AStatGraphConstants.au3

AStatGraphElement.au3

AStatGraphProp.au3

AStatGraphStyle.au3

AStatSoft.au3

AStatSoftConstants.au3

Above 3Mb in size. This is a reason to add AutoIt3 code into separate thread of group on Yahoo.

To use it you have to have STATISTICA installed!

Startup.au3

#include <GUIConstants.au3>
;========================================================
; Application Path 
Global $_StatSoft_Path = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\statist.exe", "")
;========================================================
; Application Title 
Global Const $_StatSoft_Title = "STATISTICA"

Global $oApp 

; Start application and get instance of Application object 
 $oApp = _StatSoft_AppCreate()

; Make it Visible
 $oApp.Visible = True

 MsgBox(4096, "STATISTICA", "Version " & $oApp.Version)

 $oApp.Quit()
exit

;===============================================================================
;
; Function Name:   _StatSoft_AppCreate()
; Description:      Create STATISTICA Window
; Parameter(s): None
; Requirement(s):   AutoIt3 V3.2 or higher
; Return Value(s):  
;               On Success  - Returns an object variable pointing to an StatSoft.Application object
;               On Failure  - Returns 0 and sets @ERROR
;                   @ERROR  - 0 ($_StatSoftStatus_Success) = No Error
;                           - 1 ($_StatSoftStatus_GeneralError) = General Error
; Author(s):        Valery Ivanov
;
;===============================================================================
func _StatSoft_AppCreate()
 If $_StatSoft_Path = "" then 
  MsgBox(32,"Error", "Unable to start Application Statistica. Has it installed?")
  exit
 endif

 If Not WinExists($_StatSoft_Title) Then
  Run($_StatSoft_Path & " /nologo")
  While Not WinActive ($_StatSoft_Title) 
    Sleep(100)
    WinActivate($_StatSoft_Title)
  WEnd
  WinWait($_StatSoft_Title)
 endif
 Local $hWnd = WinGetHandle ($_StatSoft_Title)
 Local $o_object = ObjGet("","Statistica.Application")
 if not IsObj($o_object) then
  SetError($_StatSoftStatus_GeneralError)
  Return 0
 endif
;Close current Spreadsheet
 $o_object.ActiveSpreadsheet.Close
 Return $o_object
endfunc

Sincerely,

Valery

The point of world view

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
  • Recently Browsing   0 members

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