Clicking one of three randomized buttons by colour

I'm very, very amateurish for these things, and I honestly don't even know where I would start on something like this, so was hoping people here would be able to help me... I have 3 buttons that alternate randomly in their position, but one is blue (the one I want to click) and the others are grey. Because they alternate randomly in their position, I can't just have a standard repeated click to do it. My idea thus is to have a script that searches the area that the buttons are in for the blue colour of the correct button, and then moves the mouse to it and clicks it. I have 2 questions, essentially:

first question: I believe I can use the "PixelSearch" function to find the button I am looking for, however I honestly have no idea how to set it up, like finding the values for the area to search and such. How do I go about this?

Second question: How do I make my mouse move to the correct button once found? I would assume I'd have to make the script have a variable that changes with the position of the correct button, and then some sort of function to actually move the mouse, but I don't know how exactly? Or is there some way to simplify it so the pixel search happens *with* the mouse movement?

Sorry if this is a little rambley, like I said I'm very new to stuff like this so I don't even really know what you might want to have details on for what I want to do

reddit.com
u/Lechtom — 4 days ago

[V2.15] Patreon exclusive chapters?

So I read a bit of this like 2 years ago or something (up to the first “nsfw” chapter, I think) and I just found the chapter I remember reading last and clicked next and it says I need patreon to read it?

I don’t remember this being a thing when I was reading, mostly curious if this is a new thing or I just was “lucky” enough to just not run into it last time I read this. I’ll gladly pay (assuming it’s nothing too crazy) but it feels weird when I remember it being completely free to read

reddit.com
u/Lechtom — 10 days ago

Which body part does Wally use Ralts for?

I'm thinking of starting an Infinite Fusion 2 playthrough soon, and I know you're supposed to give Wally a pokemon to fuse with the Ralts he catches, but I was wondering what the combination actually *is* cause I want to plan which one he gets, and I can't find the answer anywhere.
Really wanna know, cause a lot of the potential choices depend very much on whether he uses the Ralts as head or body

reddit.com
u/Lechtom — 13 days ago

Ideas for total newbie

Hi guys, I've been hearing about Maplestory for a long time now and I recently got it recommended on steam and figured I might as well try it out now.

But then, I've heard so so much about how terribly run the game is, and how badly p2w it is, so I think starting on a private server makes more sense?

So basically, what do you think would be a good server for me to start on as someone who knows nothing about the game?

reddit.com
u/Lechtom — 1 month ago

Using a bot command through the API

Hi there! So I have this very simple script (https://pastebin.com/qE8j1QYi) That I use sometimes to send announcements and stuff. I've been wanting to figure out if there is a way to use bot commands through a script like this, like for example if I wanted to use "/add" through one of the bots on my server? I haven't had much luck in my googling so far, so hoping someone here would be able to explain.

reddit.com
u/Lechtom — 3 months ago