Jump to content

How to click this button ?


 Share

Recommended Posts

Hello Everybody !

I'm creating a script to automate some task but I really don't know how to perform some actions since there are no key shortcuts, only a button in the toolbar to be clicked...

Could you please take a look to this image, the icon I have to press is the one with a red circle:

Posted Image

Thank you !!!

Simone

Link to comment
Share on other sites

I'm creating a script to automate some task but I really don't know how to perform some actions since there are no key shortcuts, only a button in the toolbar to be clicked...

You should be able to click the button using ControlClick, if the button has a controlname. However, I've seen many programs without these, so another solution may be this:

http://www.autoitscript.com/autoit3/docs/f.../MouseClick.htm

combined with this:

http://www.autoitscript.com/autoit3/docs/f...#MouseCoordMode

Link to comment
Share on other sites

This should work:

Opt("WinTitleMatchMode", 4)

If ControlClick("[CLASS:ThunderRT6MDIForm]", "", "[CLASS:msvb_lib_toolbar;INSTANCE:5]") Then
    ConsoleWrite("Debug: Successfull click." & @LF)
Else
    ConsoleWrite("Debug: Click failed." & @LF)
EndIf

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...