ValeryVal Posted February 2, 2009 Posted February 2, 2009 Hi,I've begun the automation of incredible features of STATISTICA package from http://www.statsoft.comon AutoItGroup. The AutoIt3 package will have the following library modules (wrap code of STATISTICA object model):AStatBasic.au3AStatCanonical.au3AStatCluster.au3AStatCorrespondence.au3AStatDiscriminant.au3AStatExperimental_Design.au3AStatFactor.au3AStatGeneralized_Additive_Models.au3AStatGeneralized_Linear_Nonlinear.au3AStatGeneral_Classification_and_Regression_Trees.au3AStatGeneral_Discriminant_Analysis.au3AStatGeneral_Linear_Models.au3AStatGeneral_Regression_Models.au3AStatLog-Linear.au3AStatMANOVA.au3AStatMultidimensional_Scaling.au3AStatNonlinear_Estimation.au3AStatNonparametrics.au3AStatPartial_Least_Squares.au3AStatPower_Analysis.au3AStatProcess_Analysis.au3AStatQuality_Control.au3AStatQuick_Classification_Trees.au3AStatRegression.au3AStatReliability.au3AStatSEPATH.au3AStatSurvival_Analysis.au3AStatTime_Series.au3AStatVariance_Components.au3AStatCreationObjects.au3AStatGraph.au3AStatGraphConstants.au3AStatGraphElement.au3AStatGraphProp.au3AStatGraphStyle.au3AStatSoft.au3AStatSoftConstants.au3Above 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.au3expandcollapse popup#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 endfuncSincerely,Valery The point of world view
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now