Jump to content

click on pixel


pumpas
 Share

Recommended Posts

Why do u have the first var $coord = 0

$coord = PixelSearch( 0, 0, 20, 300, 0xFFCF60, 1)
mouseclick("left", $coord[0], $coord[1])
My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]
Link to comment
Share on other sites

  • Developers

its my source of program but its dont work

$coord = 0
$coord = PixelSearch( 0, 0, 20, 300, 0xFFCF60, 1)
mouseclick("left", $coord[0], $coord[1])

BUT ITS DONT WORK:/

any ideas?

<{POST_SNAPBACK}>

what is the problem?... are you getting an error on $coord[0] ?

You are not testing if the PixelSearch () found the color or not....

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

Do you need the first $coord, if you do u can do

$coord = 0
$coord = PixelSearch( 0, 0, 20, 300, 0xFFCF60, 1)
mouseclick("left", $coord[0], $coord[1])
If @error = 1 Then
   MsgBox(0, "Coord not found", "The specefied pixel color does not exist")
My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]
Link to comment
Share on other sites

what is the problem?...  are you getting an error on $coord[0] ?

You are not testing if the PixelSearch () found the color or not....

<{POST_SNAPBACK}>

see here

this is error than i launch my program !!!

this is source

$coord = PixelSearch( 0, 0, 20, 300, 0xFFCF60, 1)
mouseclick("left", $coord[0], $coord[1])

and this is error

Link to comment
Share on other sites

Do you need the first $coord, if you do u can do

$coord = 0
$coord = PixelSearch( 0, 0, 20, 300, 0xFFCF60, 1)
mouseclick("left", $coord[0], $coord[1])
If @error = 1 Then
   MsgBox(0, "Coord not found", "The specefied pixel color does not exist")

<{POST_SNAPBACK}>

ty cio lox

dont work

Link to comment
Share on other sites

  • Developers

Do you need the first $coord, if you do u can do

$coord = 0
$coord = PixelSearch( 0, 0, 20, 300, 0xFFCF60, 1)
mouseclick("left", $coord[0], $coord[1])
If @error = 1 Then
   MsgBox(0, "Coord not found", "The specefied pixel color does not exist")

<{POST_SNAPBACK}>

correct....the first line doesn't really do anything...

What i meant was doing the test for @error after PixelSearch:

$coord = PixelSearch( 0, 0, 20, 300, 0xFFCF60, 1)
If @error = 1 Then
   MsgBox(0, "Coord not found", "The specefied pixel color does not exist")
Else
  mouseclick("left", $coord[0], $coord[1])
endif

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

correct....the first line doesn't really do anything...

What i meant was doing the test for @error after PixelSearch:

$coord = PixelSearch( 0, 0, 20, 300, 0xFFCF60, 1)
If @error = 1 Then
   MsgBox(0, "Coord not found", "The specefied pixel color does not exist")
Else
  mouseclick("left", $coord[0], $coord[1])
endif

<{POST_SNAPBACK}>

ok guys thanks

...

Link to comment
Share on other sites

oh yeah, whoops i forgot to put the MouseClick into else , sry :ph34r:

My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]
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...