Overclock.net › Forums › Components › Keyboards › Logitech G110 LED Fade Script.
New Posts  All Forums:Forum Nav:

Logitech G110 LED Fade Script. - Page 5

post #41 of 57
ty
post #42 of 57
Awesome biggrin.gif
post #43 of 57
Quote:
Originally Posted by xewl View Post

Cause it was asked in this topic & on the video, I'd thought to share the code how to change the color on any KeyPress.
It's coded so that it works on G1 and it now only checks for the "ctrl" key.
You can of course edit it to your needs smile.gif
code was based (color function) on the original code by the writer of this topic.
Code:
function OnEvent(event, arg)
if (event == "PROFILE_ACTIVATED") then
r1, g1, b1 = 0, 0, 0
color( 255, 0, 0, 25)
end
if (event == "M_PRESSED" and arg == 2) then
color( 255, 0, 0, 25)
end
if (event == "PROFILE_DEACTIVATED") then
color( 255, 0, 0, 15)
end
if (event == "G_PRESSED" and arg == 1) then
m = GetMKeyState()
while (GetMKeyState() == m) do
if(IsModifierPressed("ctrl")) then
color(255,0,80,1)
color(0,0,0,0)
end
end
end
end
--color(_r2, g2, b2, speed)
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
EDIT:
I noticed only a few keys can be used in the IsModifierPressed() function.
(r/l)alt ; (r/l)shift ; (r/l)ctrl
I'm investigating.

Is someone able to code this for me or help me learn how.
i wish to make it so that when "ctrl" and "L-shift" the keyboard changes from red to blue. but i dont want it to blink.
ie i press ctrl and keyboard changes from red to blue, then when i let go it goes back to red.
ive tried modifying the code but i have no idea what im doing.

thanks in advance
post #44 of 57
thanks!
post #45 of 57
Hey, where do I download this? I'm new to this website and I can't find a download link or button
post #46 of 57
Quote:
Originally Posted by Hamdex View Post

Hey, where do I download this? I'm new to this website and I can't find a download link or button

The link was posted a few posts earlier:
http://dl.dropbox.com/u/13814413/scrolllockflash.lua
#well
(19 items)
 
Lenovo L530
(8 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 4770k Gigabyte Z87X-UD4H XFX Radeon HD 6950 Corsair CMX8GX3M2A2000C9 
Hard DriveHard DriveOptical DriveCooling
Samsung EVO 840 Hitachi HDS722020ALA330 Generic DVD±RW Burner Noctua NH-D14 
OSMonitorMonitorKeyboard
Windows 8.1 Dell U2711 LG W2453 Ducky DK9008 Overclock.net Edition, Cherry MX B... 
PowerCaseMouseMouse Pad
Corsair TX850 Antec Three Hundred Corsair Raptor M40 QPAD HeatoN M 
AudioAudioAudio
E-MU Tracker|pre Beyerdynamic DT-770 250 Ohm AntLion ModMIc 
CPUGraphicsRAMRAM
Intel Ivy Bridge 3210M Intel HD 4000 Graphics Soldered Corsair Vengeance  
Hard DriveOptical DriveOSMonitor
500GB DVD-+RW Windows 7 Professional 1600x900 
  hide details  
Reply
#well
(19 items)
 
Lenovo L530
(8 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 4770k Gigabyte Z87X-UD4H XFX Radeon HD 6950 Corsair CMX8GX3M2A2000C9 
Hard DriveHard DriveOptical DriveCooling
Samsung EVO 840 Hitachi HDS722020ALA330 Generic DVD±RW Burner Noctua NH-D14 
OSMonitorMonitorKeyboard
Windows 8.1 Dell U2711 LG W2453 Ducky DK9008 Overclock.net Edition, Cherry MX B... 
PowerCaseMouseMouse Pad
Corsair TX850 Antec Three Hundred Corsair Raptor M40 QPAD HeatoN M 
AudioAudioAudio
E-MU Tracker|pre Beyerdynamic DT-770 250 Ohm AntLion ModMIc 
CPUGraphicsRAMRAM
Intel Ivy Bridge 3210M Intel HD 4000 Graphics Soldered Corsair Vengeance  
Hard DriveOptical DriveOSMonitor
500GB DVD-+RW Windows 7 Professional 1600x900 
  hide details  
Reply
post #47 of 57
How do I make a script for a Red Led fading from Brightest Red >low brightness red>brightest red? It's like a breathing led mod? Can someone help me with that?
Storm-X7-Trooper
(17 items)
 
Storm-X7-Scout
(14 items)
 
 
CPUMotherboardGraphicsRAM
Intel i5 - 3570k 4.4ghz @ -0.065V offset ASRock Z77 Extreme4  Gigabyte GTX 670 OC 4 x 4gb of Gskills 1600 @9-9-9-24-2N 
Hard DriveHard DriveOptical DriveCooling
Corsair Force GT 240 1TB Seagate Barracuda ASUS CD/DVD/Blu-Ray burner Corsair H100 Liquid Cooler 
OSMonitorKeyboardPower
Windows 7 Ultimate ASUS VW246H Logitech G510 Keyboard Thermaltake 850W TR2 RX 
CaseMouseMouse PadAudio
CM STORM TROOPER Logitech G500 Razer Battlefield 3 Edition Scarab Logitech Z623  
Audio
CM Storm Sirus  
CPUMotherboardGraphicsRAM
AMD Phenom II 1090T 4.0ghz @1.42V MSI 890fxa-gd65 XFX 6870 2 x 4gb Gskills  
Hard DriveOptical DriveCoolingOS
1tb Seagate Barracuda Asus DVD burner Hyper 212 Evo windows 7 ultimate 
MonitorKeyboardPowerCase
Acer p205h Logitech Mk310 keyboard Raidmax 750W CM Storm Scout 
MouseAudio
Logitech Mk310 mouse Boston 2.1 
CPUMotherboardGraphicsRAM
AMD Phenom II X2 Gigabyte M68M-Sp2 BFG GTS 250 2 x 2gb Adata 
Hard DriveOptical DriveOSCase
Western Digital green 500gb LG Dvd burne Windows 7 Ultimate Rosewill Blackbone 
  hide details  
Reply
Storm-X7-Trooper
(17 items)
 
Storm-X7-Scout
(14 items)
 
 
CPUMotherboardGraphicsRAM
Intel i5 - 3570k 4.4ghz @ -0.065V offset ASRock Z77 Extreme4  Gigabyte GTX 670 OC 4 x 4gb of Gskills 1600 @9-9-9-24-2N 
Hard DriveHard DriveOptical DriveCooling
Corsair Force GT 240 1TB Seagate Barracuda ASUS CD/DVD/Blu-Ray burner Corsair H100 Liquid Cooler 
OSMonitorKeyboardPower
Windows 7 Ultimate ASUS VW246H Logitech G510 Keyboard Thermaltake 850W TR2 RX 
CaseMouseMouse PadAudio
CM STORM TROOPER Logitech G500 Razer Battlefield 3 Edition Scarab Logitech Z623  
Audio
CM Storm Sirus  
CPUMotherboardGraphicsRAM
AMD Phenom II 1090T 4.0ghz @1.42V MSI 890fxa-gd65 XFX 6870 2 x 4gb Gskills  
Hard DriveOptical DriveCoolingOS
1tb Seagate Barracuda Asus DVD burner Hyper 212 Evo windows 7 ultimate 
MonitorKeyboardPowerCase
Acer p205h Logitech Mk310 keyboard Raidmax 750W CM Storm Scout 
MouseAudio
Logitech Mk310 mouse Boston 2.1 
CPUMotherboardGraphicsRAM
AMD Phenom II X2 Gigabyte M68M-Sp2 BFG GTS 250 2 x 2gb Adata 
Hard DriveOptical DriveOSCase
Western Digital green 500gb LG Dvd burne Windows 7 Ultimate Rosewill Blackbone 
  hide details  
Reply
post #48 of 57
where the hell do i download the god damn file! i cant figure this stupid site out!
post #49 of 57
Quote:
Originally Posted by Avngl View Post

I'm looking for the script too smile.gif
Oh nvm. Found it.
Look for it here:
Code:
http://dl.dropbox.com/u/13814413/scrolllockflash.lua
Quote:
Originally Posted by BloodViper View Post

where the hell do i download the god damn file! i cant figure this stupid site out!

If you took your time to look through the thread, you'd find the download link.
#well
(19 items)
 
Lenovo L530
(8 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 4770k Gigabyte Z87X-UD4H XFX Radeon HD 6950 Corsair CMX8GX3M2A2000C9 
Hard DriveHard DriveOptical DriveCooling
Samsung EVO 840 Hitachi HDS722020ALA330 Generic DVD±RW Burner Noctua NH-D14 
OSMonitorMonitorKeyboard
Windows 8.1 Dell U2711 LG W2453 Ducky DK9008 Overclock.net Edition, Cherry MX B... 
PowerCaseMouseMouse Pad
Corsair TX850 Antec Three Hundred Corsair Raptor M40 QPAD HeatoN M 
AudioAudioAudio
E-MU Tracker|pre Beyerdynamic DT-770 250 Ohm AntLion ModMIc 
CPUGraphicsRAMRAM
Intel Ivy Bridge 3210M Intel HD 4000 Graphics Soldered Corsair Vengeance  
Hard DriveOptical DriveOSMonitor
500GB DVD-+RW Windows 7 Professional 1600x900 
  hide details  
Reply
#well
(19 items)
 
Lenovo L530
(8 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 4770k Gigabyte Z87X-UD4H XFX Radeon HD 6950 Corsair CMX8GX3M2A2000C9 
Hard DriveHard DriveOptical DriveCooling
Samsung EVO 840 Hitachi HDS722020ALA330 Generic DVD±RW Burner Noctua NH-D14 
OSMonitorMonitorKeyboard
Windows 8.1 Dell U2711 LG W2453 Ducky DK9008 Overclock.net Edition, Cherry MX B... 
PowerCaseMouseMouse Pad
Corsair TX850 Antec Three Hundred Corsair Raptor M40 QPAD HeatoN M 
AudioAudioAudio
E-MU Tracker|pre Beyerdynamic DT-770 250 Ohm AntLion ModMIc 
CPUGraphicsRAMRAM
Intel Ivy Bridge 3210M Intel HD 4000 Graphics Soldered Corsair Vengeance  
Hard DriveOptical DriveOSMonitor
500GB DVD-+RW Windows 7 Professional 1600x900 
  hide details  
Reply
post #50 of 57
Thread Starter 
I dont even own the keyboard anymore, nor do I have the original file. So everything that is in the thread, is everything that you'll get.
Shane's Rig.
(15 items)
 
  
Reply
Shane's Rig.
(15 items)
 
  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Keyboards
Overclock.net › Forums › Components › Keyboards › Logitech G110 LED Fade Script.