Jump to content

PixelSearch


Recommended Posts

Alright thanks, I have another quick question about pixel search.

PixelSearch( 0,0, @desktopwidth, @desktopheight, 0xFF0000, 10 )

If Not @error Then

How would i make it send R, then click on the position of the pixel?

So like

PixelSearch( 0,0, @desktopwidth, @desktopheight, 0xFF0000, 10 )

If Not @error Then Send ("{R}") and mouseclick("left",xpixel position,ypixelposition,1)

Link to comment
Share on other sites

$ai_s = PixelSearch( 0,0, @desktopwidth, @desktopheight, 0xFF0000, 10 )

If Not @error Then

Send ("R")

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

EndIf

Edited by w0uter

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

Link to comment
Share on other sites

it can be anything you want. aslong as it is in the "techical limits".

i try to follow the UDF naming as much as i can.

buf if you dont want to, your choice. :)

Variable Names

The first set of characters after the dollar sign ($) should be used to specify the type of data that will be held in it. The following list signifies the different prefixes and their data type significance.

$a<letter> - Array (the following letter describes the data type taken from the rest of the data types below)

$b - Binary data

$h - File or window handle

$i - Integer

$f - Boolean

$n - Floating point number

$s - String

$v - Variant (unknown/variable type of data)

The rest of the name uses capitalized words to describe the function of the variable. Names like $iC are unacceptable. "$aiWeekDayNames" or "$iCounter" are much preferable.

All variables must be declared at the beginning of the UDF with a Local scope and before they are used for the first time.

The Dim or Global keywords are ambiguous inside of a UDF and as such should be avoided, all variables should be transferred via the Function Parameters using Byref when the updated value needs to be returned.

Edited by w0uter

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

Link to comment
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
 Share

  • Recently Browsing   0 members

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