Jump to content
Sign in to follow this  
tsherr

Controlling Windows programs

Recommended Posts

tsherr

I'm trying to write a program that will allow me to open multiple Windows applications (WordPad, Firefox, and Thunderbird) and then simulate multitasking between them (opening webpages saved on the hard drive, open emails, create documents) for benchmarking purposes. From what I've read, AutoIt should allow me to do this, but I'm not sure where to start. Is there a tutorial or manual somewhere I can read?

Thanks,

T

Share this post


Link to post
Share on other sites
weaponx

There is a basic tutorial in the help file under "Tutorials". Looks like this:

Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
Send("This is some text.")
WinClose("Untitled - Notepad")
WinWaitActive("Notepad", "Do you want to save")
Send("!n")

Share this post


Link to post
Share on other sites
MisterPseudonym

I'm trying to write a program that will allow me to open multiple Windows applications (WordPad, Firefox, and Thunderbird) and then simulate multitasking between them (opening webpages saved on the hard drive, open emails, create documents) for benchmarking purposes. From what I've read, AutoIt should allow me to do this, but I'm not sure where to start. Is there a tutorial or manual somewhere I can read?

Thanks,

T

:^/ I suggest starting with the help file AutoIt.chm, and poking through all of the example files in the folder Example/Helpfile. They are there to illustrate how to do just about anything autoit can do. Most of the example files consist of just enough code to open a widow with whatever feature is being demonstrated. What little code there is has ample comments to explain what most lines do. Look through them and try writing your own variations on them, incorporating stuff you've read about earlier into whatever you're tinkering with now.

In short, just play aroung making scripts for the fun of it; the best way to learn is by doing.

Share this post


Link to post
Share on other sites
tsherr

:^/ I suggest starting with the help file AutoIt.chm, and poking through all of the example files in the folder Example/Helpfile. They are there to illustrate how to do just about anything autoit can do. Most of the example files consist of just enough code to open a widow with whatever feature is being demonstrated. What little code there is has ample comments to explain what most lines do. Look through them and try writing your own variations on them, incorporating stuff you've read about earlier into whatever you're tinkering with now.

In short, just play aroung making scripts for the fun of it; the best way to learn is by doing.

Sounds good. That's the way I learned just about everything. Good thing I don't do brain or heart surgery. :)

T

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.