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

ControlClick() just not interacting with Dialog

$
0
0

Let's start with the code

#include <array.au3> #include <GuiComboBox.au3> #RequireAdmin Func _WinWaitActivate($title, $text, $timeout = 5) WinWait($title, $text, $timeout) If Not WinActive($title, $text) Then WinActivate($title, $text) If Not WinWaitActive($title, $text, 5) Then   Return 0 Else   Return 1 EndIf EndFunc   ;==>_WinWaitActivate _WinWaitActivate("Dexterity Runtime","") ControlClick("Dexterity Runtime","","[CLASS:Button; INSTANCE:1]")

No matter how hidden I make the "Dexterity Runtime" window, _WinWaitActivate does great finding it and bringing it to the forefront.

 

ControlClick("Dexterity Runtime","","Button1") didn't help

 

I also tried several MouseClick variants as well, but no matter what I've tried this window just won't click off.

 

Here's the relevant WindowInfo output:

Plain Text         
>>>> Window <<<< Title: Dexterity Runtime Class: TNTDLG Position: 717, 320 Size: 486, 200 Style: 0x94C00000 ExStyle: 0x00000101 Handle: 0x00000000001E1280 >>>> Control <<<< Class: Button Instance: 1 ClassnameNN: Button1 Name: Advanced (Class): [CLASS:Button; INSTANCE:1] ID: 1 Text: OK Position: 200, 132 Size: 80, 24 ControlClick Coords: 52, 12 Style: 0x5000030B ExStyle: 0x00000000 Handle: 0x00000000002211F8 >>>> Mouse <<<< Position: 972, 489 Cursor ID: 0 Color: 0xDDDDDD >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< OK >>>> Hidden Text <<<<

This is my third go-round with this, and I am just at a loss as to why it isn't working.

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles