Jump to content



Photo

I cannot click button !


  • Please log in to reply
2 replies to this topic

#1 kegiaumat055

kegiaumat055

    Seeker

  • Active Members
  • 19 posts

Posted 27 April 2012 - 09:50 PM

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:


Plain Text         
>>>> 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 by kegiaumat055, 27 April 2012 - 09:58 PM.






#2 jdelaney

jdelaney

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 952 posts

Posted 27 April 2012 - 10:32 PM

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 by jdelaney, 27 April 2012 - 10:36 PM.


#3 kegiaumat055

kegiaumat055

    Seeker

  • Active Members
  • 19 posts

Posted 28 April 2012 - 08:38 AM

Thanks, When I used controlclick in windows 7, it doesn't work. But It works in windows 2008




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users