Jump to content
Sign in to follow this  
automateseeker

autoit with spotfire

Recommended Posts

automateseeker

Is it possible to interact with spotfire using autoit? If it is what are steps would I need to do? Thx

Share this post


Link to post
Share on other sites
automateseeker

I am trying to see if I can use autoit script to launch spotfire and do some simple task like open a text file and plot it. I was able to launch it but after that look like I cannot control spotfire anymore

Share this post


Link to post
Share on other sites
Mikeman27294

Launching it is simple.

Run("Path & executable")

then opening the text file, do you mean in notepad or in spotfire?

If you want to open it in notepad, use this:

ShellExecute("Path & Filename")

Also, as for trying to control the program, what do you want to do? Click buttons, input text?

Run the Au3Info tool from scite (Tools>AU3Info) or CTRL+F6 or run it from the autoit directory.

You can use this to get information about the controls such as the buttons, and then you can

send a click to the button.

Share this post


Link to post
Share on other sites
automateseeker

Thanks Mikeman, sorry for not being very clear. I meant open .csv file in spotfire using Autoit control commands.

Below is my simple code but I can only get spotfire to launch and could not get it to control the "Work Offline" botton on the spotfire login menu.

my $Au3 = Win32::OLE->new("AutoItX3.Control");

sub mP_SPOTFIRE_OPEN($)

{ my $string1 = shift;

# my $spotfire_filename = 'C:Program FilesSpotfireDXP2.0Spotfire.Dxp.exe';

my $spotfire_filename = $string1;

my $spotfire_app = mP_SYS_WIN2UNIX($spotfire_filename);

$Au3->run("$spotfire_app"); #Need to provide full path including dxp filename

$Au3->WinWaitActive("TIBCO Spotfire Login");

$Au3->Opt("WinWaitDelay", 250); # wait 250ms after spotfire login activated

$Au3->ControlClick("TIBCO Spotfire Login", "Work &Offline", "[iNSTANCE:3; NAME:workOfflineButton]");

$Au3->WinWaitActive("TIBCO Spotfire");

}

mP_SPOTFIRE_OPEN('C:Program FilesSpotfireDXP2.0Spotfire.Dxp.exe');

Share this post


Link to post
Share on other sites
automateseeker

I got it working OK now, thank you for pointing me to the Auto3Info tool. It's very useful. Very much appreciated.

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.