G19+G510 Backlight Colour-Cycling Script

January 29, 2019 | Author: Mohamad Norhasif | Category: Computer Graphics, Computer Hardware, Display Technology, Electronic Engineering, Media Technology
Share Embed Donate


Short Description

Download G19+G510 Backlight Colour-Cycling Script...

Description

-----

G19 Backlight Colour-Cycling Script -----------------------------------------Cobbled together and imaginatively titled by White--Hawk (GH) - Edited in german german by Jackjan

--

Thanks to everyone.

 

------------------------|| CONTROLS: ||----------------------------------- R-Ctrl + --M1 Cycle RG --M2 Cycle GB --M3 Cycle BR ----- R-Shift + --M1 Cycle RGB --M2 Cycle RBG --M3 Colour Picker ----- While Cycling: --- R-Shift + --L-Shift Faster --L-Ctrl Slower ----- L-Shift + --R-Ctrl Toggle LHC mode --(G19/G13 sync) ----- While Picking: --- R-Shift/R-Ctrl (brighter/darker) + --L-Shift Red --L-Ctrl Green --L-Alt Blue ----- Press any other MKey to stop --- cycling or picking, and keep --- selected colour. ----------------------------------------------

 

-- **Cycle rate: -- **(default = 150; red-to-red in ~23secs) -- **(always set lower than mrate) rate = 150 -- **Minimum delay: -- **(default = 600; red-to-red in ~1.5mins) -- **(higher is slower) mrate = 600 -- **Static (RGB) Colour: -- **(default = 140, 255, 150; white on my G19) R, G, B = 140, 255, 150 function OnEvent(event,arg)

--

Cycle or set custom colour: if (event=="M_PRESSED") and IsModifierPressed("rshift") then

--

Cycle RGB: if arg==1 then Cycle(0, 5, 0, 1, arg)

--

Cycle RBG: elseif arg==2 then Cycle(255, -5, 2, -1, arg)

 

else

-Set custom static colour. Right Shift/Ctrl(+/-) plus Left-Shift/C trl/Alt(R/G/B).   run=1 while run~=null do if IsModifierPressed("rshift") then if IsModifierPressed("lshift") then R=R+.1 if R>255 then R=255; end end if IsModifierPressed("lctrl") then G=G+.1 if G>255 then G=255; end end if IsModifierPressed("lalt") then B=B+.1 if B>255 then B=255; end end elseif IsModifierPressed("rctrl") then if IsModifierPressed("lshift") then R=R-.1 if R
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF