-
Color-finding plugin Parameter 1, Parameter 2, Parameter 3, Parameter 4, Parameter 5, Parameter 6, Parameter 7) vbscall findcolor(0,0,1024,768,"0000ff",intx,inty)
The judgment statement is.
if intx>0 and inty>0
goto1 jumps directly to 1
endif then put.
The above statement of rem 1 is placed in front of the color search.
This fulfills your requirements, what you want to do yourself, write it in the back of the endif, find the color in a loop, find it, find it, and run the following statement until you can't find the color.
-
Fuzzy color search will store the coordinates of the first similar color in a variable, and the default variables are intx and inty. When calling, just call the variable (coordinates) directly. If no similar colors are found, these two variables are -1. The main thing is to use coordinates.
vbscall findcolorex(0,0,1024,768,"0000ff",0,,intx,inty)
vbscall plugin.
findcolorex.
0,0 to find the coordinates in the upper left corner of the range. The range is a block.
1024,768 finds the coordinates in the lower right corner of the range. This is to be found in full screen.
0000ff"is the color value of the lookup. Hexadecimal.
0 ways to find it. 0 is from top to bottom, and 1 is the center of diffusion.
Color similarity.
intx, inty is to get the coordinates of similar colors.
-
There are many reasons.
If you set this key in the game, it may conflict with the key sprite. The first thing you need to do is make sure that the script is actually executed.
2.After pressing F10, this script is executed only once. That is, it is possible that the moment you press it, the script does not find the red, and then it is over, and it will not be looked for again, you can make a loop to find the red every 100 milliseconds.
3.It's possible that the screen range is wrong. Or maybe red got the details wrong or something. I usually add a pop-up window after the if to determine whether the script is executed.
-
There's nothing wrong with your ** in itself. Isn't the previous delay too big?
-
First of all, see if this handle can be used in the background.
Test method Click on the button to grab There is a handle in the bottom left corner of the window. Click on and then there is a green word in the top left corner (move to.
Get the window handle like this, and then find the handle above the 2 images, there is a designated window handle in the upper left corner (copy the handle you just got on it), don't forget to tick it.
If the screenshot is not black, you can use the background.
It's still the old way to use the backstage.
hwnd =
+ this in front of the sentence will do.
And then in the key wizard on the top left there are all the commands and the basic commands.
Click All commands.
Plug-in commands. Find the background to find the color, there is it, I will simply talk about the confusion to find the color.
Parameter 1, Parameter 2, Parameter 3, Parameter 4, Parameter 5, Parameter 6, Parameter 7, Parameter 8
Parameter 1 Integer, window handle (hwnd).
Parameter 2 Integer type, x coordinate in the upper left corner of the window See for yourself.
Parameter 3 Integer type, y coordinate in the upper left corner of the window Look at it yourself.
Parameter 4 Integer type, the x coordinate in the lower right corner of the window Look at it yourself.
Parameter 5 integer type, the y coordinate in the lower right corner of the window Look at it yourself.
Parameter 6 String, hexadecimal color value (color value).
Parameter 7 Integer type, find the direction (0 from left to right, top to bottom, 1 from the middle to the four sides of the order) (if you can't read it, 0).
Parameter 8 Integer type, similarity (decimals, most similar (this.
Needless to say, it's just like looking for a picture.
That is, if x is greater than 0 and y is greater than 0, it's fine. This is the foundation of the foundation.
Okay, if you don't know how to keep penguins, I'll teach you.
-
(Left-to-right, top-to-bottom sequential color search) Blur the color within the specified rectangular area of the window handle (variable: hwnd).
xy = , 0, 0, 1024, 768, "0000ff", 0, the first parameter of the above statement is the window handle, the second parameter is the X coordinate of the upper left corner of the region, the third parameter is the y coordinate of the upper left corner of the region, the fourth parameter is the X coordinate of the lower right corner of the region, the fifth parameter is the Y coordinate of the lower right corner of the region, the sixth parameter is the hexadecimal color value to be found, the seventh parameter is to find the direction 0 is from top to bottom, from left to right, and the eighth parameter is the similarity, and the value range is the most similar).
The following sentence is used to split the string.
zb = instr(xy, "|")
The following sentence converts a string into a numeric value.
x = clng(left(xy, zb - 1)):y = clng(right(xy, len(xy) -zb))
The return value is the x,y coordinates, if the xy coordinate point of similar color is found, if it is not found, it returns x=-1, y=-1
-
Actually, there are simpler ones ... Use it directly.
hwnd =
gc = , 17, 114)
if gc >= "000000" and gc <= "ffffff" then
msgbox "ok"
elsemsgbox "sorry"
end if
Directly with the greater than and less than methods.
-
You join a loop.,Find it.,Execute your following **.,If you don't find it, you'll keep looking for it.,And,The delay you set is a little high.,Loop to find the map and set it to about 50.,Look at your computer configuration!
-
You can try it with the desert plugin, the built-in one is not very easy to use.
-
Replace the command with a background command.
Button Wizard - Plug-in Command - Background Command Inside there is a keyboard and mouse color simulation.
You're all in the front desk here.
The backend needs to get the handle before manipulating the handle.
-
Adjust the similarity, the key wizard comes with the comparison color is not similarity adjustment, but the color finding can be set to the similarity, so you can use the color finding function instead of the comparison color function.
-
Change the match value, 1 is a complete match, 50% match, adjust to see the effect!
-
There is a color in the key wizard that is about the same.,I don't know the specific effect.。
The key wizard comes with a key code query,In"Key commands"Below, there is"Query the keycode"Press any key on the keyboard at the key, and the keycode of the corresponding key will be displayed in the keycode. Vice versa. >>>More
You can use the map finding + jump command.
i = 1while i = 1 >>>More
s1 =
s2 = s1 >>>More
I haven't used the key elf.,But the words of the rebuild are all the same.,The reason why I want to rebuild,It's because the default control key in the inventory in Chenghai is the 784512 of the keypad.,The right hand controls the mouse.,The keypad is difficult to press.,If you use the mouse point alone,,The speed is very slow.,So use the remodeling tool to change the keypad 784512 to the left hand can be pressed to the key that doesn't conflict with the skill keys in Chenghai.,For example,I'm used to putting silence and teleportation at the top of the inventory.,The corresponding keypad is 7 and 8., I used the remodeling to change the 7 key, change the 8 to the space bar, so that it is very convenient to press, if with hurricane and purification, you can also change the keypad 4 or 5 to the q key, the specific modification should be the same: open the remodel, click on the default key, and then enter the key you want to change. And run the game after the change, don't forget to turn on the reconstruction, otherwise it's useless.
The following sentence is the window that can now send keystroke messages. >>>More