Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;***********************Get Color**************************
- +^R::Reload ;Reloads Script
- +^P::Pause ;Pauses Script
- Ins:: Suspend ;Suspend hotkeys
- ;Ctrl+Leftmousebutton = Start stop Color Detection
- ;Ctrl+RightMousebutton = Copy current color to clipboard
- ;***********************************************************
- #MaxThreadsPerHotkey 2
- ^LButton::
- Toggle := !Toggle
- While Toggle {
- MouseGetPos Xpos, Ypos
- PixelGetColor Colour, %Xpos%, %Ypos%, RGB
- StringTrimLeft Colour, Colour, 2 ; Remove 0x
- ToolTip %Colour% `n %Xpos% %Ypos%
- }
- ToolTip
- Return
- ^RButton::
- StringTrimLeft Colour, Colour, 2 ; Remove 0x
- Clipboard = %Colour%
- ToolTip Copied to the clipboard:`n%Colour%
- Sleep 3000
- ToolTip %Colour%
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement