Jump to content
Sign in to follow this  
pumpas

click on pixel

Recommended Posts

pumpas

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?


Share this post


Link to post
Share on other sites
the_lord_mephy

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]

Share this post


Link to post
Share on other sites
Jos

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

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

Share this post


Link to post
Share on other sites
the_lord_mephy

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]

Share this post


Link to post
Share on other sites
pumpas

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


Share this post


Link to post
Share on other sites
pumpas

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


Share this post


Link to post
Share on other sites
Jos

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

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

Share this post


Link to post
Share on other sites
pumpas

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

...


Share this post


Link to post
Share on other sites
the_lord_mephy

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]

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  

×