Jump to content

Recommended Posts

hi all,

can anyone please tell me what im doing wrong here in my code

im trying to get it to click "OK" on the windows box labelled class "#32770"

i know i could use the actual title of the windows box but im trying this out first

WinWait("[CLASS:#32770]")
ControlClick ("[CLASS:#32770]", "", "OK")

what am i doing wrong please?

thanks,

rob

Link to post
Share on other sites

Make sure you got success after each statement by adding error handling.  BTW OK button should not have control class OK.  Use Au3info.exe tool to find its true properties.  You should always try to get handle first (WinGetHandle / ControlGetHandle).  You can also check with au3info if you grab the right handle.  Very useful when it gets time to debug such of your code.

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...