Jump to content

Smithy963

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by Smithy963

  1. i know this isnt quite the place, but i was just wondering because AutoIT is a program that allows to get pixel colours from screen, if anyone knew some 3rd party screenshot takers, because i cannot take a full screenshot on a game. also (obviously) i need the screen shot to be pixel for pixel. Thank you in advance. Smithy963.
  2. so im reeling in a fish, my rod swings left, my program presses right, if my rod then swings right, it presses left?
  3. i dont think i quite get this, ;MyPixelLocation =(100, 100) ;MyRodLocationLeft =(40, 60) ;MyRodLocationRight =(60, 60) $MyPixelColor = hex(0xFFF1FF) $MyRodColor = hex(0xFF0FFF) ;!= means "is not equal to" ? While PixelGetColor(100, 100) != $MyPixelColor Then;go back to while else;? if PixelGetColor(40, 60) = $MyRodColor then;press right elseif PixelGetColor(60, 60) = $MyRodColor Then;press left else;go back to first 'if statement' EndIf @error any help or even a point in the right direction would help, thank you in advance. Smithy963.
  4. no no, that is perfect. the fully finished program i am making will be 1 huge loop, with a lot of mini loops inside, and the idea is. 1. i check bait 2. check rod 3. cast rod 4. 4 detect when fish is on the line 5. do this what we have been chatting about (the hard part to me lol) 6. while doing the reeling in checking the fishes health at the same time 7. when fishes health hits 0 press enter 8. sort out inventory 9. restart from number 1. ive started drawing out a big visual idea of how i want it too work. say if the fish is too big to cancel, if inventory is full close game. im gonna start on something simple like to wait until game has loaded up and to then cast rod. and reel it in when health equals 0. then build on it more an more until perfect to do the entire process on its own and finally thank you very much for your posts, aswell as telling me that what i wish to achieve is possible youve also gave me a starting point. so thank you very very much Smithy963.
  5. and also im trying to "americanise" my writing but i keep going on "autopilot" and writing the correct way for my counry (UK), also i would like to thank you guys. you have helped an awful lot, in a very short time, leaving me with a good impression of this place, within 6hours or so of me joining thank you very much
  6. oh no, the idea is.... i want to find a fishing rod, lol. and if the fishing rod is leaning right i must press left, if the fishing rod is leaning left i must press right. now, the idea is i get 3 pixel positions from my screen ( rod left, rod right, rod central) each of these spots has a possibility of being 2 colours each, the rod colour, and back ground colour. i need autoit to continuosly search these 3 spots if it finds the rod colour on the left. it presses right, rod on the right presses left... you get the idea. so from experiance with VB im guessing my code should look a little like this ,but a lot more complex $rodcolor = FFFFFF If <pixel position(right side)> = $rodcolor then press and hold left elseif <pixel position(left side)> = $rodcolor then press and hold right else do nothing endif fish is caught as you can see, some familiarity with the code is to be desired. but i think i got the idea? if that makes sense? and could somebody also tell me how to put my code on inset like that please, im thinkin ive got alot of variables and pixelgetcolour problems im going to need help with.
  7. ok so your saying to me that pixelsearch and pixelgetcolor are opposite of each other, pixelsearch i give a colour and it gives me the coordinates? pixelgetcolour i give a coordinates and it tells me the colour it finds ? see, i need something that will search a spot (i know where the spot i want to search is) then i want it to compare that pixel it finds with the colour i will specify, then if the colour it finds is the same as the colour i told it. it will do something but if it doesnt then it must skip onto the next line or repeat. basically, i just need to make sure that this is possible before i start getting too much into this then i will start my learning process and stop acting like a noob and risk getting flamed.
  8. ok thank you very much. i will do that right now. also i would like to ask if pixelsearch can be used in if statements for example, this is a more VB version for simplicity, sorry. If Pixelsearch (pixel position) = ( pixel colour) Then (perform this operation) Else Pixelsearch (pixel position) = (pixel colour) Then (perform another operation) End if End Thanks again.
  9. well, i look like an idiot sorry bout that. the previous post was me thanks
  10. I am new to AutoIt i have a little knowledge on programming, with Python and a little Visual Basic. I think i understand the mechanics behind programming. Bearing that in mind i would like some help. I am in the process of planning a bot for a game. and for this bot to function, I need to use 'get pixel'. at this point in time i do not understand the 'get pixel' function and i am asking if it is possible for somebody to tell me the limitations and capabilities and generally how it works please? Also I would like know if it is possible or if it would consume too much power to constantly analyze 4-5 areas (lines of pixels, boxes of pixels) for certain colours and/or changes. Thank you very much in advance, for any and all help with this subject.
×
×
  • Create New...