Sign in to follow this  
Followers 0
lockieday

i need some help

6 posts in this topic

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!

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Nirvana6

Share this post


Link to post
Share on other sites

dude snap, thats the game im trying to get it to work for haha

ill try this out now thanks

Share this post


Link to post
Share on other sites

dude snap, thats the game im trying to get it to work for haha

ill try this out now thanks

If it's Archlord then you have a Slider on your health bar and your mana bar for auto heal muttley) lol

it looks like an triangle

works better than a script :)


Share this post


Link to post
Share on other sites

If it's Archlord then you have a Slider on your health bar and your mana bar for auto heal muttley) lol

it 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!

Share this post


Link to post
Share on other sites

You got the pixel search using in AutoIt3 Help muttley


Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0