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

ControlClick

$
0
0
Hello all
I saw this script in another topic and one part confused me slightly

[ autoit ]      
Send("#r") Sleep(1000) $hHandle = WinGetHandle("Run") MsgBox(64, "Window Handle", 'Now this will click the "Cancel" button using >> WinGetHandle("' & $hHandle & '")') ControlClick($hHandle, "", "[CLASS:Button; INSTANCE:3]")

in the last line, (i'm assuming the the $hHandle is the title) how are you meant to determine the instance number, especially when applied to a GUI with a lot of buttons.

Apologies if this is a stupid question

Viewing all articles
Browse latest Browse all 12506

Trending Articles