Sign in to follow this  
Followers 0
qwqwwqwdwd

help on my little script

3 posts in this topic

$coord = PixelSearch( 0, 0, 20, 300, 0x673D17 )

If Not @error Then MouseClick("left", $coord[0], $coord[1], 1, 0)

Sleep( 2000 )

Send( "{NUMPAD1}" )

AutoItSetOption ( "sendkeydowndelay", 100)

EndIf

I want this script to whenever it detect the pixel in certain range , mouse will move to the pixel and left click and then using Numperpad 1 .

Is my script right? please give me some advise.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I am not sure, but shouldnt you Dim Coord$ as an array first? I am not sure, I havent used that function.. also, would the Option statement be at teh beginning of code? ...my helpfile wont work at school so I might just be saying nonsense..

Edited by Psibernetic

[sup]Psibernetic[/sup]My Creations:X-HideSecuracy

Share this post


Link to post
Share on other sites

I am not sure, but shouldnt you Dim Coord$ as an array first? I am not sure, I havent used that function.. also, would the Option statement be at teh beginning of code? ...my helpfile wont work at school so I might just be saying nonsense..

MAYBE UR right cuz im a newbie i just start learning scripitng 2 days ago... lol

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