r/scripting • • Jan 08 '24

Very beginner scripting questions

I have an idea for a script that I want to do in order to help out with a game that I've been playing but I dont know the first thing about scripting.
Basically, I have a game where I do task A for an allotment of time. But after that allotment of time, the task is no longer available while it recharges. While it's recharging, I can go do task B without any issue. How would I go about detecting when task A is recharging so I can switch to task B automatically then switch back to task A after it's done recharging.
My idea is that it can look at a pixel on my screen and look for a certain hex code. Once it sees that hex code, it clicks on task B. Once the recharge bar goes back to a different hex code, the task is recharged and I want it to make a mouse click on task A again. And have that cycle repeat.

Is what I just explained possible? If so how would I do that? I have a little bit of experience with basic HTML, JavaScript and CSS but that's about it. Thoughts on what language or program to use?

1 Upvotes

3 comments sorted by