Jump to content

Some help with ControlClick please!


Gordi300
 Share

Recommended Posts

Hey everyone!! 

I'm trying to make a program in VB.NET that click inside a picturebox of an app without moving the mouse (using ControlClick).

My code is this:

1) ControlClick("Form1", "", "[CLASS:PictureBox; INSTANCE:12]", "left", 1, 5, 5)

2) ControlClick("Form1", "", "[CLASS:PictureBox; INSTANCE:1]", "left", 1, 5, 5)

The code is correct  but the problem is that 1) works perfectly and 2) doesn't work. 

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Here I leave you the summary of each picturebox:

>>>> Window <<<<
Title:    Form1
Class:    Form
Position:    168, 0
Size:    1030, 780
Style:    0x16CA0000
ExStyle:    0x00040100
Handle:    0x00000000000B0092

 

>>>> Control <<<<                PICTUREBOX 12
Class:    PictureBox
Instance:    12
ClassnameNN:    PictureBox12
Name:    
Advanced (Class):    [CLASS:PictureBox; INSTANCE:12]
ID:    28
Text:    
Position:    305, 721
Size:    40, 40
Style:    0x56010000
ExStyle:    0x00000004
Handle:    0x0000000000040520

 

>>>> Control <<<<                PICTUREBOX 1
Class:    PictureBox
Instance:    1
ClassnameNN:    PictureBox1
Name:    
Advanced (Class):    [CLASS:PictureBox; INSTANCE:1]
ID:    4
Text:    
Position:    4, 176
Size:    700, 533
Style:    0x56010000
ExStyle:    0x00000004
Handle:    0x00000000000E02BE

 

Thank you for you help!!!

Edited by Gordi300
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
 Share

×
×
  • Create New...