Jump to content

How to click using ControlClick in the window


Recommended Posts

Hi Forum,

I tried to automate a window, and i am facing some problems clicking the button,

Here is my autoit script

#RequireAdmin

$tool1="D:\Virusscan\MiniToolBox.exe"
$tool2="D:\Virusscan\tdsskiller.exe"


ShellExecute($tool1)

WinWaitActive("MiniToolBox by Farbar")

ControlCommand ("MiniToolBox by Farbar", "", 3, "CHECK")
sleep (100)
ControlCommand ("MiniToolBox by Farbar", "", 5, "CHECK")
sleep (100)
ControlCommand ("MiniToolBox by Farbar", "", 7, "CHECK")
sleep (100)
ControlClick ( "MiniToolBox by Farbar", "", 20)
WinWaitActive("[class:Notepad]")
ControlSend("[class:Notepad]", "", "", "!{F4}")

ShellExecute($tool2)
WinWaitActive("[CLASS:#32770]")
ControlClick ("[Class:#32770]", "", 1002)

In this window, i need to click the Start Scan button,

Here is the window properties

>>>> Window <<<<
Title:
Class: #32770
Position: 441, 209
Size: 490, 450
Style: 0x94000044
ExStyle: 0x00010000
Handle: 0x003E0120

>>>> Control <<<<
Class: ATL:00551468
Instance: 1
ClassnameNN: ATL:005514681
Name:
Advanced (Class): [CLASS:ATL:00551468; INSTANCE:1]
ID: 1002
Text: Start scan
Position: 40, 315
Size: 410, 69
ControlClick Coords: 270, 36
Style: 0x5001000B
ExStyle: 0x00000020
Handle: 0x003D0284

>>>> Mouse <<<<
Position: 751, 560
Cursor ID: 0
Color: 0xFDFDFD

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
Start scan
Close
Report
About
Full protection against malware
Change parameters
details


>>>> Hidden Text <<<<

Please guide me,

Thanks in advance

Sathish V.

post-69004-0-70664400-1366964528_thumb.j

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...