LovinItAll Posted March 12, 2006 Share Posted March 12, 2006 I have a user that receives an error any time a .click event on a button is attempted. They have (2) machines side by side -- one works, the other does not. Both machines are configured as follows: - Win XP, AutoUpdates (install automatically) turned on - Same mouse, same keyboard (shouldn't matter, I don't think) NOTE: This user was experiencing no probs until a few days ago. They say they have not installed any new software. Does anyone know from which DLL the .click event is called (assuming it is a DLL)? This code from Dale's post for his IE Automation library creates the error also, so I have used it as an example: #include <IE.au3> $oIE = _IECreate() _IENavigate($oIE, "http://www.google.com") $oForm = _IEFormGetObjByName($oIE, "f") $oQuery = _IEFormElementGetObjByName($oForm, "q") $oButton = _IEFormElementGetObjByName($oForm, "btnG") _IEFormElementSetValue($oQuery, "place your search string here") $oButton.click _IELoadWait($oIE) Exit Link to comment Share on other sites More sharing options...
LovinItAll Posted March 12, 2006 Author Share Posted March 12, 2006 Would this be better suited for another forum? Thanks ~ Lee Link to comment Share on other sites More sharing options...
Developers Jos Posted March 12, 2006 Developers Share Posted March 12, 2006 (edited) Would this be better suited for another forum?Thanks ~ LeeAnd the error is ??????Add a ComObj error handler when its the comobj giving the error... see helpfile for details..... Edited March 12, 2006 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
LovinItAll Posted March 12, 2006 Author Share Posted March 12, 2006 Added the error handler, sent it to the user, and now they do not get the error. No other mods were made, so who knows? Thanks for the suggestion. At least I have the error handler in place should they get that (or another COM) error again. Should have had it in there to begin with: just lazy, I guess! Lee 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