Skip to content

Instantly share code, notes, and snippets.

@zhengkai
Created September 20, 2013 16:04
Show Gist options
  • Save zhengkai/6639855 to your computer and use it in GitHub Desktop.
Save zhengkai/6639855 to your computer and use it in GitHub Desktop.
取颜色和 AutoHotKey 坐标
colorBoxParam = B CBFFFFFF CT000000 H28 W200 X300 Y10 FM9
Progress, %colorBoxParam%, , parse F11, colorBox, Droid Sans Mono
F11::
MouseGetPos, MouseX, MouseY
PixelGetColor, color, %MouseX%, %MouseY%
showText = %color% at %MouseX%, %MouseY%
Progress, , , %showText%, colorBox
FileAppend, %showText%`n, %A_ScriptDir%\a.log
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment