Jump to content

ControlClick() and AirVPN

Recommended Posts

Hello @ community,

I want to do a click on the button "Disconnect" in the program "AirVPN" AirVPN-MainScreen.png

1st try: MouseClick("LEFT", 550, 550, 1) doesnt work
2nd try: ControlClick($hWnd, "", "[ClassNameNN:WindowsForms10.BUTTON.app.0.1ca0192_r12_ad15]")
3rd try: ControlClick($hWnd, "", "[Class:WindowsForms10.BUTTON.app.0.1ca0192_r12_ad1]")
4th try: ControlClick($hWnd, "", "[ID:393946]")
5th try: ControlClick($hWnd, "", 393946)
(edit: Local $hWnd = WinWait("[Class:WindowsForms10.Window.8.app.0.1ca0192_r12_ad1]", "", 2) works)

Nothing works. Any idea what I could do to click the button?


>>>> Window <<<<
Title:  Eddie -567 kbit/s ↑ 18 kbit/s - Ogma (Germany) - IP:, 2001:ac8:20:2b:1da:26be:a2db:a07c
Class:  WindowsForms10.Window.8.app.0.1ca0192_r12_ad1
Position:   1220, 681
Size:   700, 370
Style:  0x16CF0000
ExStyle:    0x00050100
Handle: 0x00000000002E29C6

>>>> Control <<<<
Class:  WindowsForms10.BUTTON.app.0.1ca0192_r12_ad1
Instance:   5
ClassnameNN:    WindowsForms10.BUTTON.app.0.1ca0192_r12_ad15
Advanced (Class):   [CLASS:WindowsForms10.BUTTON.app.0.1ca0192_r12_ad1; INSTANCE:5]
ID: 393946
Text:   Disconnect
Position:   190, 250
Size:   438, 34
ControlClick Coords:    177, 20
Style:  0x5601000B
ExStyle:    0x00000000
Handle: 0x00000000000602DA

>>>> Mouse <<<<
Position:   1595, 982
Cursor ID:  0
Color:  0xE5E5E5


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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...