Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

controlclick

$
0
0

I tried multiple ways, but it doesn't click the button:

 

Here's what I tried:

 

   ControlClick("[Title:Alarm]","[CLASS:Button]", "[INSTANCE:2]")

 

   ControlClick("[Title:Alarm]","[CLASS:Button; INSTANCE:2]")

 

   ControlClick("[CLASS:Button; INSTANCE:2]", "")

 

   ControlClick("[CLASS:Button; INSTANCE:2]", "Primary")

 

Here's the detail from WindowsInfo

Plain Text         
>>>> Window <<<< Title:    Alarm Class:    #32770 Position:    -273, 143 Size:    874, 344 Style:    0x94CC0044 ExStyle:    0x00010104 Handle:    0x00140A70 >>>> Control <<<< Class:    Button Instance:    2 ClassnameNN:    Button2 Name:     Advanced (Class):    [CLASS:Button; INSTANCE:2] ID:    1008 Text:    Stop and Exit Position:    635, 270 Size:    137, 25 ControlClick Coords:    92, 11 Style:    0x50010000 ExStyle:    0x00020004 Handle:    0x00140B8C >>>> Mouse <<<< Position:    462, 454 Cursor ID:    0 Color:    0xCEF0F0

 

The winactivate works and I know that part already; just the controlclick. Sometimes the alarm windows popup elsewhere if I use coordinates so it won't work.

 

any suggestion is greatly appreciated.


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>