Sign in to follow this  
Followers 0
Garrett19212

PixelSearch

10 posts in this topic

How would I make pixel search, search the whole screen?

Share this post


Link to post
Share on other sites



Yes, it`s the other way around.

Share this post


Link to post
Share on other sites

0,0, @desktopwidth, @desktopheight ?

Share this post


Link to post
Share on other sites

Yep.

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

$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

Share this post


Link to post
Share on other sites

Thanks again, can i change the variable name to something different? Or does it "have" to be like that.

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

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

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