Guest User

Untitled

a guest
May 9th, 2012
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.68 KB | None | 0 0
  1. GUICreate("Paint.DE",210,210 + 20)
  2. $Color = GUICtrlCreateInput("",0,210,210,20)
  3.  
  4. HotKeySet("{Space}","_Save")
  5.  
  6. Dim $Pixel[21][21]
  7. Dim $Colors[21][21]
  8. GUISetState()
  9. For $x = 0 To 20
  10.     For $y = 0 To 20
  11.         $Pixel[$x][$y] = GUICtrlCreateLabel("",$x * 10,$y * 10,10,10)
  12.         GUICtrlSetBkColor(-1,0xffffff)
  13.     Next
  14. ;~  Sleep(100)
  15. Next
  16.  
  17. $File = "Test.txt"
  18. If FileExists($File) Then
  19. For $x = 0 To 20
  20.     For $y = 0 To 20
  21.         GUICtrlSetBkColor($Pixel[$x][$y],IniRead($File,$x,$y,0xffffff))
  22.     Next
  23. Next
  24. EndIf
  25.  
  26. While 1
  27.     $msg = GUIGetMsg()
  28.     Select
  29.         Case $msg <= $Pixel[20][20] And $msg >= $Pixel[0][0]
  30.             GUICtrlSetBkColor($msg,GUICtrlRead($Color))
  31.         Case $msg = -3
  32.             Exit
  33.     EndSelect
  34. WEnd
Advertisement
Add Comment
Please, Sign In to add comment