Sign in to follow this  
Followers 0
Aktonius

Any way to click a button from Autoit without controlclick()

3 posts in this topic

Bit silly question but isnt there something different? I have a button that i want to click with shortcut so i was thinking there is something like guictrlclick()...

Could a message be sent to this button?

The problem with controlclick() is that sometimes it wont click unless gui is active.

Share this post


Link to post
Share on other sites



Hi, Aktonius. There is _GUICtrlButton_Click, but that is for a button on a GUI you've created. Unfortunately, it is difficult to assist you without some more information. Can you please post the code that is not working, or a screenshot of the button you'd like to click on?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

I changed it to

$handle = GUICtrlGetHandle($Button)
        _SendMessage($handle,$BM_CLICK)

Also, had no idea _Click exists, thanks

Share this post


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
Sign in to follow this  
Followers 0