Advertisement
DevTricks

Цвет под курсором

Feb 10th, 2021
715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Loop
  2. {
  3.     CoordMode, Mouse, Screen
  4.     MouseGetPos, xpos, ypos
  5.     CoordMode, Pixel, Screen
  6.     PixelGetColor, Color, %xpos%, %ypos% ; определ¤ем цвет пиксел¤ под курсором по заданным координатам
  7.     CoordMode, ToolTip, Screen 
  8.     ;if (xpos>=0) && (ypos>=0)
  9.     ToolTip, X: %xpos% Y: %ypos%`n%Color%,%xpos% + 10 , %ypos% + 10
  10.     Sleep 10
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement