Jump to content

I keep getting this damned error


Recommended Posts

I can't figure it out for the life of me, especially since its a section of script Larry helped me with.

Here's the error:

Posted Image

Here's the code:

$XY = PixelSearch(314, 192, 507, 389, 0x7898D8)
    Sleep(3500)
  MouseClick("left",$XY[0],$XY[1], 1, 0)
Link to comment
Share on other sites

:D You can copy the text of most message boxes to the clipboard by pressing Ctrl+C

The result looks like the following:

---------------------------
Sample
---------------------------
Example message
---------------------------
OK   
---------------------------
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

  • Developers

did you try Larry's code ?

The issue is that if the Pixelsearch fails, it doesn't return an Array and thus gives this error if you try to access it in that way.

Edited 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

  • Developers

I originally used Larry's code, and got the exact same error with it.

just being persistent here: ....

Larry's code look good...: you didn't change itat all and it give an error telling you that it isn't an Array ??

Sure you didn't put another statement between these lines:

$XY = PixelSearch(314, 192, 507, 389, 0x7898D8)
If Not @ERROR Then

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

:D  You can copy the text of most message boxes to the clipboard by pressing Ctrl+C

The result looks like the following:

---------------------------
Sample
---------------------------
Example message
---------------------------
OK   
---------------------------
:iamstupid: I can not get that to work in Windows 95 and 98. I do not know about other OS's.

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...