Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Color grabb  :) Empty Color grabb :) Wed Sep 08, 2010 11:15 pm

Sound

Sound
Undertaker
Loading
this is not my color grab it is cakes but ti decided to release it 1. open up au3
2.Past code and use it done :3




Code:
#NoTrayIcon
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=..\Icons\cake1.ico
#AutoIt3Wrapper_outfile=..\Color Grab.exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <GUIConstants.au3>
#include <Color.au3>

Global $Pixel_Last, $Pixel_RGB

HotKeySet("{F10}","clipHex")
HotKeySet("{F11}","clipRGB")

AutoItSetOption("GuiOnEventMode", 1)
GUICreate("Color Grab", 337, 160, 797, 354)
GUICtrlCreateGroup("Hex Color", 12, 8, 153, 65)
$HexLabel  = GUICtrlCreateLabel("Label1", 50, 32, 90, 21)
GUICtrlCreateGroup("RGB Color", 12, 80, 153, 65)
$RGBLabel = GUICtrlCreateLabel("Label2", 50, 102, 90, 21)
$showcolor = GUICtrlCreateGraphic(175,17,153,126)
GUICtrlSetBkColor(-1,0x000000)
GUISetOnEvent($GUI_EVENT_CLOSE,"close")

GUISetState(@SW_SHOW)
AdlibRegister("grab",100)

While 1
WEnd

Func grab()
    $pos = MouseGetPos()
    $pixel_hex = hex(PixelGetColor($pos[0],$pos[1]),6)
   $pixel_rgb = __ColorGetRGB("0x"&$pixel_hex)
    If $pixel_last <> $pixel_hex Then
        GUICtrlSetData($HexLabel, "#" & $pixel_hex)
        GUICtrlSetData($RGBLabel, $pixel_rgb)
      GUICtrlSetBkColor($showcolor,"0x"&$pixel_hex)
    EndIf
    $Pixel_Last = $Pixel_Hex
EndFunc

Func __ColorGetRGB($nColor)
   Return _ColorGetRed($nColor) & " " & _ColorGetGreen($nColor) & " " & _ColorGetBlue($nColor)
EndFunc


Func clipHex()
    ClipPut ("#" & $pixel_last)
EndFunc

Func clipRGB()
   ClipPut($pixel_rgb)
EndFunc

Func close()
    Exit
EndFunc

2Color grabb  :) Empty Re: Color grabb :) Fri Sep 10, 2010 3:58 am

Top

avatar
Contributor
Loading
Let me fix it for you.
1) Right click your desktop. Where it says "New" go to the little arrow.
2) After your done with step 1. Click the AutoIt one, if you have it.
3) Now then, right click the AutoIt file then look for "Edit script" start there.
4) Take the things off. Then go back to this post and copy what Cake did. Ctrl+A Fo back to the script, press Ctrl+V.
5) Done with step 4, press F5 and your done. The script will start.

3Color grabb  :) Empty Re: Color grabb :) Sat Sep 11, 2010 1:55 am

Cake

avatar
Fresh Meat
Loading
[You must be registered and logged in to see this link.] lol

4Color grabb  :) Empty Re: Color grabb :) Sat Sep 11, 2010 3:45 am

Sleepy

Sleepy
Contributor
Loading
Cake wrote:[You must be registered and logged in to see this link.] lol

He gave you credit.
>.>

5Color grabb  :) Empty Re: Color grabb :) Sat Sep 11, 2010 7:33 pm

Cake

avatar
Fresh Meat
Loading
Sleepy wrote:
Cake wrote:[You must be registered and logged in to see this link.] lol

He gave you credit.
>.>
would've been better if he just linked to that imo. Plus he didn't even ask me if i cared lmao.

6Color grabb  :) Empty Re: Color grabb :) Sat Sep 11, 2010 7:49 pm

Sleepy

Sleepy
Contributor
Loading
Cake wrote:
Sleepy wrote:
Cake wrote:[You must be registered and logged in to see this link.] lol

He gave you credit.
>.>
would've been better if he just linked to that imo. Plus he didn't even ask me if i cared lmao.

True...
He should've.

7Color grabb  :) Empty Re: Color grabb :) Sun Sep 12, 2010 1:01 am

Sound

Sound
Undertaker
Loading
srry mr.cake V___V

8Color grabb  :) Empty Re: Color grabb :) Sun Sep 12, 2010 2:12 am

Coco Puffs

avatar
Undertaker
Loading
lmao wtf is this?

9Color grabb  :) Empty Re: Color grabb :) Sun Sep 12, 2010 6:24 pm

Sound

Sound
Undertaker
Loading
iJoker wrote:lmao wtf is this?
a color grabb

10Color grabb  :) Empty Re: Color grabb :) Sun Sep 12, 2010 6:47 pm

Coco Puffs

avatar
Undertaker
Loading
um ok idk what that is

11Color grabb  :) Empty Re: Color grabb :) Tue Dec 21, 2010 8:51 pm

The Professor

The Professor
Contributor
Loading
This wasn't made by Cake.
This was one of his revisions of the original design.
But why post it here? When you can find it [You must be registered and logged in to see this link.].

Sponsored content


Loading

View previous topic View next topic Back to top  Message [Page 1 of 1]

Related topics

Permissions in this forum:
You cannot reply to topics in this forum