RE: Visual Basic Code Help
First of all, Norton has his own auto-update features, check out the help files and manuals.
Second, even if you are able to press on a button, there are extremely many things which can go wrong and extremely many things which needs to be done first or after pressing the button.
I don't recommend making this for your grandfather (as good as the intention might be) as it will most likely produce more problems (not to mention crashes or whatever) which he can't solve at all. Instead teach him how to update such stuff for himself (or write it down or something)...
---------
For the problem itself, again I emphesize on understanding the code and understanding the methods used to find the button.
The button can be a child of another control which on his turn can be a child of another control which on his turn (...) etc (...), which on his turn is a child of the main window. You need to enumerate the complete tree. The Form code only looks at buttons directly placed on the main window. The Module code looks at buttons in all child windows and childs of those child windows.
Note that the term "window" is not the thing you think of as a window. A control like a button is also a window... Anything that has a window handle is called a window.
Note that not all programs work in the same way and not all programs have window controls which you could subclass or control (eg: MSN Messenger 7.x is a good example of this).
This post was edited on 11-27-2005 at 11:04 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
|