Guest User

Untitled

a guest
Jun 25th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1.  
  2. #IfWinActive SmoothDraw
  3.  
  4. 1::SelectColor(0)
  5. 2::SelectColor(1)
  6. 3::SelectColor(2)
  7. 4::SelectColor(3)
  8.  
  9. 5::SelectColor(4)
  10. 6::SelectColor(5)
  11. 7::SelectColor(6)
  12. 8::SelectColor(7)
  13.  
  14. 9::SelectColor(8)
  15. 0::SelectColor(9)
  16.  
  17. #IfWinActive
  18.  
  19.  
  20. SelectColor(n) {
  21. MouseGetPos,mx,my
  22. ControlGetPos,X,Y,,,colorGrid1,SmoothDraw
  23.  
  24. px := X + Mod(n, 8) * 16 + 3
  25. py := Y + (n > 7 ? 16 : 0) + 8
  26.  
  27. Click %px%, %py%
  28. MouseMove,mx,my,0
  29. }
Add Comment
Please, Sign In to add comment