pumpas 0 Posted September 18, 2004 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 0 Posted September 18, 2004 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 2,165 Posted September 18, 2004 (edited) 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 September 18, 2004 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. Share this post Link to post Share on other sites
the_lord_mephy 0 Posted September 18, 2004 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 0 Posted September 18, 2004 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 0 Posted September 18, 2004 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 2,165 Posted September 18, 2004 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. Share this post Link to post Share on other sites
pumpas 0 Posted September 18, 2004 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 0 Posted September 18, 2004 oh yeah, whoops i forgot to put the MouseClick into else , sry 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