lockieday Posted July 18, 2008 Share Posted July 18, 2008 im pretty new to auto it, and i want to get better at it. one thing i want to learn how to do is this pixel get, where when the certain colour comes up it makes the script do something. such as when my health in a game i play goes past a certain spot it will use a health pot (i often forget to look at health bar amazingly lol ) ive thought about it and i need the script to look at one spot and if its grey (background when there is no health; red) and make it press "1" to heal me some. if you cant do this for me im more then happy if you tell me where to go to learn how to do this. thankyou for your time! Link to comment Share on other sites More sharing options...
Nirvana6 Posted July 18, 2008 Share Posted July 18, 2008 (edited) I might help : First open the game and take a screenshot of the health bar muttley. Open it with paint or other editor. Now open the Au3Info.exe in your AutoIt Folder. Then select the Mouse tab. View the screenshot and put your cursor on the spot of your health bar. Note down the position of the cursor and the color of the pixel. I used this thing for Archlord in inventory here is a part of the code $pixelhealth = PixelGetColor(717,356) $inipixelcolor = 0xFFFFFF if $pixelhealth <> $inipixelcolor then SEND ( "{1}") it should work Edited July 18, 2008 by Nirvana6 Link to comment Share on other sites More sharing options...
lockieday Posted July 18, 2008 Author Share Posted July 18, 2008 dude snap, thats the game im trying to get it to work for haha ill try this out now thanks Link to comment Share on other sites More sharing options...
Nirvana6 Posted July 18, 2008 Share Posted July 18, 2008 dude snap, thats the game im trying to get it to work for hahaill try this out now thanksIf it's Archlord then you have a Slider on your health bar and your mana bar for auto heal muttley) lolit looks like an triangle works better than a script Link to comment Share on other sites More sharing options...
lockieday Posted July 18, 2008 Author Share Posted July 18, 2008 If it's Archlord then you have a Slider on your health bar and your mana bar for auto heal muttley) lolit looks like an triangle works better than a script im new haha, im using this game mainly to test my skills lol.thanks though im still looking at the pixel search, thanks! Link to comment Share on other sites More sharing options...
Nirvana6 Posted July 18, 2008 Share Posted July 18, 2008 You got the pixel search using in AutoIt3 Help muttley 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