So I had this idea from a game where you play as a ball, and you roll over a pillar which switches the colour of a pillar (The one that is under you). The pillars that are touching the edge (corner pillars don't change), change to the opposite colour (from red to green/green to red).
Say you move your mouse over a red area, you left click it, then the colour changes to green, the edge areas (so north, east, south and west of the cursor)
that were green before, are now red.
Below you can see an example (in emojis ¯\_(ツ)_/¯ ) so you see it better.
--- .............................
.....................
--- .............................
Before...........................After
I was wondering if that was possible with a script that does the same thing using your mouse when left clicking the red/green areas.
As always, help is indeed appreciated!
a cursor moving with colour detection script
a cursor moving with colour detection script
Last edited by [m] on 23 Apr 2021, 09:16, edited 1 time in total.
Re: a cursor moving with colour detection script
Code: Select all
dir := A_ScriptDir, c0 := dir "\red.png", c1 := dir "\green.png", colors := "11011"
UrlDownloadToFile, https://www.autohotkey.com/boards/download/file.php?id=12973, %c0%
UrlDownloadToFile, https://www.autohotkey.com/boards/download/file.php?id=12972, %c1%
Gui, Add, Picture, x40 vg1, %c1%
Gui, Add, Picture, x10 vg2, %c1%
Gui, Add, Picture, x40 yp gRed vg3, %c0%
Gui, Add, Picture, x70 yp vg4, %c1%
Gui, Add, Picture, x40 vg5, %c1%
Gui, Show,, Pic
Return
Red:
on := !on
Loop, Parse, colors
{ pic := "c" on ^ A_LoopField
GuiControl,, g%A_Index%, % %pic%
}
Return
GuiEscape:
GuiClose:
ExitApp
- Attachments
-
- red.png (123 Bytes) Viewed 183 times
-
- green.png (123 Bytes) Viewed 183 times