Nov-07-2018, 06:47 PM
I decided to learn how to code with Python with a specific goal in mind and could use some help with learning resources towards that goal.
Using AutoHotKey I managed to write a little script with a GUI that loads up an image from a directory and then uses ImageSearch in a loop to scan an active window for the previously loaded .png. If detected it acts with a combination of hotkeys or mouse movement/clicks.
Now I would like to rewrite that script in Python, but I was unable to find any equivalent to ImageSearch that AutoHotKey uses. AHK has also another way of doing the job, PixelSearch. With PixelSearch I was able to select a region of an active window and it would scan the region for any change in the pixels, allowing for the script to act with hotkeys/mouse clicks.
How would I go about coding this in Python? Or maybe theres a different way to detect area of the screen changes?
Please don't be too harsh
Using AutoHotKey I managed to write a little script with a GUI that loads up an image from a directory and then uses ImageSearch in a loop to scan an active window for the previously loaded .png. If detected it acts with a combination of hotkeys or mouse movement/clicks.
Now I would like to rewrite that script in Python, but I was unable to find any equivalent to ImageSearch that AutoHotKey uses. AHK has also another way of doing the job, PixelSearch. With PixelSearch I was able to select a region of an active window and it would scan the region for any change in the pixels, allowing for the script to act with hotkeys/mouse clicks.
How would I go about coding this in Python? Or maybe theres a different way to detect area of the screen changes?
Please don't be too harsh
