noobee88 Posted January 3, 2020 Share Posted January 3, 2020 Hello @ community, I want to do a click on the button "Disconnect" in the program "AirVPN" 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? Summary: >>>> Window <<<< Title: Eddie - ↓ 567 kbit/s ↑ 18 kbit/s - Ogma (Germany) - IP:185.189.112.19, 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 Name: 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 More sharing options...
markyrocks Posted January 3, 2020 Share Posted January 3, 2020 (edited) Lol some programs are resistant to automation. If that's the case theres only a few paths around this, but I'm not even sure if it's even legal to discuss those paths. Edited January 3, 2020 by markyrocks Spoiler "I Believe array math to be potentially fatal, I may be dying from array math poisoning" Link to comment Share on other sites More sharing options...
Bert Posted January 3, 2020 Share Posted January 3, 2020 Look at this: The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
junkew Posted January 4, 2020 Share Posted January 4, 2020 In general read faq 31. Try the different spying tools and post some info. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now