Jump to content

Recommended Posts

Posted

$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.

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

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...