JohnOne Posted April 18, 2010 Share Posted April 18, 2010 http://www.autoitscript.com/autoit3/docs/functions/PixelSearch.htm AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
trancexx Posted April 18, 2010 Share Posted April 18, 2010 @DarkDragon, don't listen to him. He only asks this hard questions. Click PixelSearchPixelSearch ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
ArmandoXS Posted April 18, 2010 Author Share Posted April 18, 2010 Lets go back a little and see if you can answer the question a little better.In the code you posted, what does this do ? "If Not @error Then" ?I know you said there is a pixel search ealier in the code , but can you tell me whay you have that line, and what it does ?Supposingly pixel search returns two main things, an array of the x and y coords. of where the pixel was found (if found at all) OR a value called @error , in this case if the first pixelsearch did NOT come up with an error then the second pixel search was activated and aswell the code after that Link to comment Share on other sites More sharing options...
JohnOne Posted April 18, 2010 Share Posted April 18, 2010 <Slow link poster is slow> AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
trancexx Posted April 18, 2010 Share Posted April 18, 2010 This is like ICQ. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
ArmandoXS Posted April 18, 2010 Author Share Posted April 18, 2010 @DarkDragon, don't listen to him. He only asks this hard questions. Click PixelSearchPixelSearch Thats what ive been looking at the whole time however its provided no aid mainly since the exaple doesnt have a case where the array made by pixelsearch is being used... like in a command like mouseclick Link to comment Share on other sites More sharing options...
JohnOne Posted April 18, 2010 Share Posted April 18, 2010 Now we are getting some place, so you are checking that the pixel is actually found before you try to reference an array it would return, or in other words error checking. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
JohnOne Posted April 18, 2010 Share Posted April 18, 2010 This is like ICQ.One of the first functions I ever tried was PixelSearch.I was that far off, I think its still looking. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ArmandoXS Posted April 18, 2010 Author Share Posted April 18, 2010 Now we are getting some place, so you are checking that the pixel is actually found before you try to reference an array it would return, or in other words error checking.i guess sobut once metioned before if i have to bring out the whole code which isnt that big i will... Link to comment Share on other sites More sharing options...
JohnOne Posted April 18, 2010 Share Posted April 18, 2010 (edited) Ok, you win. $cord=PixelSearch(133,103,888,656,0xA58A29,10,10) If Not @error Then MouseClick("left",$cord[0],$cord[1],1,1) Sleep(12000) Else ; ride a camel to jupiter Endif Edited April 18, 2010 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
cueclub Posted April 18, 2010 Share Posted April 18, 2010 sorry was browsing the forums. and all i can say is LMAO Link to comment Share on other sites More sharing options...
ArmandoXS Posted April 18, 2010 Author Share Posted April 18, 2010 (edited) Ok, you win. $cord=PixelSearch(133,103,888,656,0xA58A29,10,10) If Not @error Then MouseClick("left",$cord[0],$cord[1],1,1) Sleep(12000) Else ; ride a camel to jupiter Endif so i need to use 0 and 1 instead of 1 and 2 Edited April 18, 2010 by DarkDragon Link to comment Share on other sites More sharing options...
JohnOne Posted April 18, 2010 Share Posted April 18, 2010 so i need to use 1 and 2instead of 1 and 2Yes. lol AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ArmandoXS Posted April 18, 2010 Author Share Posted April 18, 2010 Yes. lolWELL I JUST FIXED IT AND GUESS WHAT.................. SAME PROBLEM!!! :) Link to comment Share on other sites More sharing options...
ArmandoXS Posted April 18, 2010 Author Share Posted April 18, 2010 do you want me to bring out the whole code now lol Link to comment Share on other sites More sharing options...
JohnOne Posted April 18, 2010 Share Posted April 18, 2010 So you added the error checking and it still error out at exactly the same line ? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ArmandoXS Posted April 18, 2010 Author Share Posted April 18, 2010 So you added the error checking and it still error out at exactly the same line ? : ==> Subscript used with non-Array variable.: MouseClick("left",$cord[0],$cord[1],1,1) MouseClick("left",$cord^ ERROR and yes Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 18, 2010 Share Posted April 18, 2010 This thread made me lol. Also I think this is more like IRC than ICQ. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
JohnOne Posted April 18, 2010 Share Posted April 18, 2010 Post the new block of code you changed. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ArmandoXS Posted April 18, 2010 Author Share Posted April 18, 2010 If Not @error Then $timer=TimerInit() $cord=PixelSearch(133,103,888,656,0xA58A29,10,10) MouseClick("left",$cord[0],$cord[1],1,1) Sleep(12000)Post the new block of code you changed. 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