pumpas Posted September 18, 2004 Share 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? Link to comment Share on other sites More sharing options...
the_lord_mephy Posted September 18, 2004 Share 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] Link to comment Share on other sites More sharing options...
Developers Jos Posted September 18, 2004 Developers Share 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. Link to comment Share on other sites More sharing options...
the_lord_mephy Posted September 18, 2004 Share 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] Link to comment Share on other sites More sharing options...
pumpas Posted September 18, 2004 Author Share 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 Link to comment Share on other sites More sharing options...
pumpas Posted September 18, 2004 Author Share 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 Link to comment Share on other sites More sharing options...
Developers Jos Posted September 18, 2004 Developers Share 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. Link to comment Share on other sites More sharing options...
pumpas Posted September 18, 2004 Author Share 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 ... Link to comment Share on other sites More sharing options...
the_lord_mephy Posted September 18, 2004 Share 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] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now