Jump to content

Could It B Simple?


 Share

Recommended Posts

Hi

I'm new here and learning how Ait works

I was wondering if there is a simple solution for this.

Check if the title(name) of the active window is named Station and Display , if so click next

else send error Active window name do not match .

On the next window called Station and Display click Next

On the next window called Station and Display clcik next

On the next window called Station and Display click install

and on the next window called Station and Display click Finish

(3 times a next button, 1 install and 1 Finish)

Thanks for your input

Gr Jennifer

Link to comment
Share on other sites

This is a pretty simple script.

$name = "Station and Display"
$qst = WinActive($name)
if $qst = 0 then 
 MsgBox(0, "error", "No window match")
 Exit
WinActivate($name)
Send("!n)
sleep(30)
WinActivate($name)
Send("!n)
sleep(30)
WinActivate($name)
Send("!i")
sleep(7000);guessing how long install will take place. This is 7 seconds
WinActivate($name)
Send("!f")

I'm having to guess, for I do not know if the send keys will work. You will need to look at the send command. Also, if the send (7000) isn't long enough, you will need to increase the number. I have no idea if this will work, but give it a try.

Link to comment
Share on other sites

Jenni,

This is completely doable with AutoIt. It should also be a rather easy script to create.

There are some things you will need to do to script this.

Use the AutoIt Window Info tool to get the ControlID's of the controls or use the mouse click coordinates to use a more manual method.

Search the Helpfile for the following functions:

MouseClick

ControlClick

If...ElseIf...EndIf

WinActive

MsgBox

If you dont have SciTE installed to help with your script writing I would highly recommend it. It is available and free at: SciTE4AutoIt3.

You may also be interested in a few links to some user written tutorials.

AutoIt 1-2-3

Learning to Script in AutoIt

I hope the above helps you get started. Let me know if you have any questions.

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Link to comment
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
 Share

  • Recently Browsing   0 members

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