Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Logitech G19 Disco Script

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
9,681
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 16, 2010

function OnEvent(event, arg)
if (event == "PROFILE_ACTIVATED") then
r1, g1, b1 = 0, 0, 0
color( 0, 255, 255, 25)
end
if (event == "M_PRESSED" and arg == 1) then
color( 0, 255, 255, 25)
end
if (event == "M_PRESSED" and arg == 2) then
color( 0, 127, 255, 25)
end
if (event == "M_PRESSED" and arg == 3) then
color( 0, 255, 0, 25)
end
if (event == "PROFILE_DEACTIVATED") then
color( 0, 0, 0, 15)
end
if (event == "G_PRESSED" and arg == 1) then
color( 255, 255, 255, 25)
end
if (event == "G_PRESSED" and arg == 2) then
color( 255, 255, 0, 25)
end
if (event == "G_PRESSED" and arg == 3) then
color( 0, 255, 255, 25)
end
if (event == "G_PRESSED" and arg == 4) then
color( 255, 0, 255, 25)
end
if (event == "G_PRESSED" and arg == 5) then
color( 255, 0, 0, 25)
end
if (event == "G_PRESSED" and arg == 6) then
color( 0, 255, 0, 25)
end
if (event == "G_PRESSED" and arg == 7) then
color( 0, 0, 255, 25)
end
if (event == "G_PRESSED" and arg == 8) then
color( 255, 127, 0, 25)
end
if (event == "G_PRESSED" and arg == 9) then
color( 0, 255, 127, 25)
end
if (event == "G_PRESSED" and arg == 10) then
color( 127, 0, 255, 25)
end
if (event == "G_PRESSED" and arg == 11) then
color( 100, 255, 255, 25)
end
if (event == "G_PRESSED" and arg == 12) then
m = GetMKeyState()
while (GetMKeyState() == m) do
color( 255, 0, 0, 20)
color( 0, 255, 0, 20)
color( 0, 0, 255, 20)
end
end
end


function color(r2, g2, b2, speed)
for loop = 5, 255, 50 do
SetBacklightColor((r2*loop+r1*(255-loop))/255, (g2*loop+g1*(255-loop))/255, (b2*loop+b1*(255-loop))/255);
Sleep(speed)
end
r1 = r2
g1 = g2
b1 = b2
end

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 5 dislikes

Link to this comment:

Share to:

Uploader Comments (amokful)

  • LOL you have got the roccat konte, I too. You have the logitech G19, I too. Your PC have blue light, my too

  • @MrHamburger453 and g35? ^^

Top Comments

  • You copy the script from the information bar of this video, then you open the G-Series Key Profiler. Once you do that, you go to the "Edit" tab and click "Script Editor" from the menu and a window will come up. Simply paste the script, replacing whatever is in there already and then save the script. After you've done that you'll want to go back to the Key Frofiler window, left click on the "G-Keys" and assign them all to script. G1-G11 are colors, G12 is disco, and M2 toggles disco off.

see all

All Comments (22)

Sign In or Sign Up now to post a comment!
  • @JanikupDarastrix im asking nicely :D

  • Hey, I'm using the Logitech Gaming Software how do I assign the scripts to the G-keys in that.

  • wow such a HUGE coding for only one use -.-

    I found a way to make it only 4 lines AND it does cycles through colors.

    If you want it, ask nicely! oh and BE a brony ^^

  • wow works :D

    

  • doesnt work when i put the script in

  • where to put the code?

  • how do you delete the script if you would want to

  • works perfectly, THANKS!!!!!!!!!!!!!!!!!!!!!!

  • @amokful ahahah...i also have g35 & g19 :)

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more