Jump to content
Sign in to follow this  

Error & successful timestamp -- My Firts AutoIT Script

Recommended Posts

Hi Guys,

I am starting to dive into AutoIt scripting & i am trying to create a script for a task that i would like to get automated.

The goal here is to

1. Login to exchange server with predefined credentials

2. If Login is successful then write timestamp along with success status to a file

3. If Login is failed then write timestamp with failed status to a file.

Till now i was able to accomplish 1st sub-task which is as below. I am new to programming & does not know more about how to use arrays & functions.

Please suggest me how can i proceed (I am open to various ideas as i will learn from them)

Run ("C:\Program Files\Mozilla Firefox\firefox.exe")

WinWaitActive ("Mozilla Firefox")

Send ("https://webmail.abcd.com/")

Send ("{ENTER}")

WinWait ("[CLASS:MozillaUIWindowClass]", "",10 )

Send ("abcd\myusername")

Send ("{TAB}")

Send ("mypassword@3!")

Send ("{ENTER}")

WinWaitActive ("Microsoft Outlook Web Access - Mozilla Firefox")

MouseClick ("left", 40, 403,1)

WinWait ("Microsoft Outlook Web Access - Mozilla Firefox","", 10)

WinClose ("Microsoft Outlook Web Access - Mozilla Firefox")

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...