Sign in to follow this  
Followers 0
Elo001

script help

5 posts in this topic

$a = pixelsearch(0,0,1024,768,"colour in hex (forgot colour )",10,10)

mouseclick("left", $a[0], $a[1], 1)

this is my script for an 2d-game-aimbot...but it doesnt work xD

($a = pixelsearch(0,0,1024,768,,10,10)

$a = pixelsearch(0,0,1024,768,^ ERROR)

^debug window

Share this post


Link to post
Share on other sites



It shows you the error, you have 2 commas side by side.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

ah , here is it :

$a = pixelsearch(0,0,1024,768,#C99F6D,10,10)

mouseclick("left", $a[0], $a[1], 1)

mmmmh , it says "#" is an illegal charachter......

but i need # for the hex-colour

Edited by Elo001

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

$a = pixelsearch(0,0,1024,768,0xC99F6D,10,10)
mouseclick("left", $a[0], $a[1], 1)

# is used for HTML and other stuff like that...

use '0x'

although this is the wrong forum...

Next time post in 'Support".

Edited by CHRIS95219

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