kegiaumat055 Posted April 27, 2012 Share Posted April 27, 2012 (edited) I want to click the disconnect button. But the problem is that nothing I try click this button. Here's the this button's info: >>>> Window <<<< Title: ExpressVPN v3.091 Class: WindowsForms10.Window.8.app.0.33c0d9d Position: 492, 86 Size: 759, 606 Style: 0x16CA0000 ExStyle: 0x00050100 Handle: 0x00000000000B01C0 >>>> Control <<<< Class: WindowsForms10.BUTTON.app.0.33c0d9d Instance: 52 ClassnameNN: WindowsForms10.BUTTON.app.0.33c0d9d52 Name: Advanced (Class): [CLASS:WindowsForms10.BUTTON.app.0.33c0d9d; INSTANCE:52] ID: 66282 Text: Disconnect Position: 326, 404 Size: 124, 39 ControlClick Coords: 60, 16 Style: 0x5601000B ExStyle: 0x00000000 Handle: 0x00000000000102EA >>>> Mouse <<<< Position: 881, 531 Cursor ID: 0 Color: 0x9E0000 And here is way I've tried to click this button: MouseClick("left", 1080, 370, 1) What am I doing wrong? Please help me ! Edited April 27, 2012 by kegiaumat055 Link to comment Share on other sites More sharing options...
jdelaney Posted April 27, 2012 Share Posted April 27, 2012 (edited) Look into controlclick...but if you want mouseclick, you should probably use these coords (assuming you didnt change the default AutoItSetOption s) >>>> Mouse <<<< Position: 881, 531 Cursor ID: 0 Color: 0x9E0000 If you want to use mouseclick, you should set the autoitsetoption to be inside the window, make sure you activate the window first...else, if you move your application, your script will fail Edited April 27, 2012 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
kegiaumat055 Posted April 28, 2012 Author Share Posted April 28, 2012 Thanks, When I used controlclick in windows 7, it doesn't work. But It works in windows 2008 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