Sign in to follow this  
Followers 0
timjohnson

Newbies - help

5 posts in this topic

Hi everyone,

First let me say what a powerful tools AutoIt is. I have been looking for something like it for ages, and here it is (I just found last week).

OK, I have read the online documentation and try to make my script work... but I am a bit lost at what (and where) I should look for.

1) I have written a Java program and it will pop up a "save as" window with the path (in a textfield) of where the file should be saved. On the AutoIt Window Info (>>> Visible Window Text <<<), I found the visible pathname, but I don't know how to change this.

2) I also try to mimic the action of selecting a certain printer drive (from the drop downbox) in the print dialog. From AutoIt Window Info (>>> Visible Window Text <<<), I got the &name of the printer I want to select, but I don't know how to select it.

Is there a function or variable that I can use for them?

Many thanks for your help.

Cheers

Tim

Share this post


Link to post
Share on other sites



Hi.

I have only been using AutoIt for about two weeks. It is a little hard to get started, but once you do it is pretty easy. Most information is in the help file. I suggest starting here >> http://www.autoitscript.com/wiki/

Share this post


Link to post
Share on other sites

what do you want to do?

tell the prog to save your file somewhere else (you specified before), or do you just want to know where it is saved?

I want to change the "path" of where it is saving. The path is shown in a text field, I just don't know how to access and change that text field

Share this post


Link to post
Share on other sites

Welcome to the forums Tim!

Did you end up solving your problem? AutoIt Window Info will show a control ID and/or ClassNameNN value for the text field that contains the data when you place your mouse over it. You can then easily modify the value of that field using ControlSetText():

ControlSetText('Open', '', 'TheControlID', 'New value')

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  
Followers 0