Sign in to follow this  
Followers 0
LovinItAll

Script errors out when attempting a .click event

4 posts in this topic

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

Share this post


Link to post
Share on other sites



Would this be better suited for another forum?

Thanks ~ Lee

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Would this be better suited for another forum?

Thanks ~ Lee

And the error is ??????

Add a ComObj error handler when its the comobj giving the error... see helpfile for details.....

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

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