r/programminghelp • u/Zombieattackr • Apr 02 '21
Other A program that takes input from the screen and outputs a click
basically, I want a program that can sense when a few specific spots on my screen change color, and based on that, click in a specific location. something as simple as
if(colorChangeAt1)
{
clickAt1;
}
if(colorChangeAt2)
{
clickAt2;
}
if(colorChangeAt3)
{
clickAt3;
}I know Java and HTML, and I can learn the basics of anything else pretty quickly, so this isn't as much about the code itself as much as I just don't know where to start. I've never made a program that took any input outside of the console or did anything outside the console. Does a program like this already exist? If not, what could I use to make something with these capabilities? Looking to do this on windows10 but I could make Linux work as well, though I'm not as familiar. Any help is greatly appreciated!
1
Apr 02 '21
Autoit and AutoHotkey can do this
1
2
u/Krystall_Waters Apr 07 '21
SikuliX is a small tool thats actually made for testing GUIs. I used it for a job a while ago, so my memory is a bit hazy, but it does exactly what you need.
2
u/amoliski Apr 02 '21
https://pyautogui.readthedocs.io/en/latest/