Rahul Posted February 11, 2008 Share Posted February 11, 2008 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 Link to comment Share on other sites More sharing options...
Bert Posted February 11, 2008 Share Posted February 11, 2008 Does the control have a name like "cancel", or "run"? All you need is something stable that doesn't change to hook into. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Bowmore Posted February 11, 2008 Share Posted February 11, 2008 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 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