Autoit Tutorials Part 16 Calculator Automation Project

preview_player
Показать описание
Reference Book- Autoit scripting for beginners

Title: Autoit Tutorials Part 16 Calculator Automation Project

In this video you'll learn how to automate window calculator using autoit script.

Project Requirements:

1) Launch the calculator Application
2) Verify the calculator is launched
3) Press the button 5
4) Press the button +
5) Press the button 6
6) Press the button =
7) Close the calculator application

Source Code:

;Launch calc
;Wait for 2 seconds
Sleep(2000)

;Check the calculator is launched or not
If WinExists("Calculator","") Then
;Press button 5
ControlClick("Calculator","",135)
Sleep(2000)
;Press button +
ControlClick("Calculator","",93)
Sleep(2000)
;Press button 6
ControlClick("Calculator","",136)
Sleep(2000)
;Press button =
ControlClick("Calculator","",121)
Sleep(2000)
;Close calc
WinClose("Calculator","")

EndIf
`

Рекомендации по теме
Комментарии
Автор

really nice video... right to the point and click... thanks a lot...:)

qzorn
Автор

in my application i am not able to see the control id and there is no id avalible then how can i get the id

HARVINDERSINGH-kisk
Автор

We cannot see the ID's for few of the controls . Then how can we identify that control

srilakshmivishnupriyachodi
Автор

Hi, do you know how can I generate a report of the script execution? I mean if the execution went well, it is 'Passed'or 'Fail' if something went wrong. I'm asking because I am looking for a tool for QA automation

ramonbruni
Автор

Hey! I have windows 10 and I can't see the calculator or other ID's, what should I do?

itssuuxxxx
join shbcf.ru