Sign in to follow this  
Followers 0
Rahul

ControlClick with .net Windows applications

3 posts in this topic

Hi,

The ControlClick function works well with VB6 compiled applications which have constant control IDs. However in .NET 2.0 Compiled applications, the Control ID is generated everytime the exe is run, has anyone been able to find a resolution to this since the ControlClick uses the ControlID as a parameter.

Also, can someone give me an idea what Win32API calls are made by the ControlClick function?

--Rahul

Share this post


Link to post
Share on other sites



Hi,

The ControlClick function works well with VB6 compiled applications which have constant control IDs. However in .NET 2.0 Compiled applications, the Control ID is generated everytime the exe is run, has anyone been able to find a resolution to this since the ControlClick uses the ControlID as a parameter.

Also, can someone give me an idea what Win32API calls are made by the ControlClick function?

--Rahul

I've had a lot of success using this method, but it depends on the developers having given names to conrols - some do - some don't

ControlClick("Caption", "", "[CLASS:classname; TEXT:controlname]", "left", 1, 10, 10)

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

Share this post


Link to post
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
Sign in to follow this  
Followers 0