What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Logitech LED Disable

Logitech LED Disable
Author: Message:
tobby
New Member
*

Avatar
I Support RSPCA

Posts: 2
Joined: Jul 2009
Logitech Help
Recently I have been visting websites which allow webcam chat but i am mostly on this at night the LED hurts my eyes and I am thrilled to have found a script to disable this

code:
var shell = new ActiveXObject('WScript.Shell');

function OnEvent_ChatWndSendMessage(ChatWnd, Message){
    if(Message.search("/ledoff") != -1){
        shell.RegWrite('HKLM\\SYSTEM\\CurrentControlSet\\Control\\Class\\{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\\0000\\Settings\\LVUVC_LEDControl', 0x00000000, "REG_DWORD");
        MsgPlus.DisplayToast("Logitech Webcam", "LEDs Turned off");
        return "";
    }else if(Message.search("/ledon") != -1){
        shell.RegWrite('HKLM\\SYSTEM\\CurrentControlSet\\Control\\Class\\{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\\0000\\Settings\\LVUVC_LEDControl', 0x00000008, "REG_DWORD");
        MsgPlus.DisplayToast("Logitech Webcam", "LEDs Turned on");
        return "";
    }
    return Message;
}

function OnGetScriptMenu() {
        var menu = "<ScriptMenu>";
        menu += "<MenuEntry Id=\"on\">Turn on webcam LEDs</MenuEntry>";
        menu += "<MenuEntry Id=\"off\">Turn off webcam LEDs</MenuEntry>";
        menu += "</ScriptMenu>";
        return menu;
}

function OnEvent_MenuClicked(MenuItemId, Location, OriginWnd){
    if(MenuItemId == "on") OnEvent_ChatWndSendMessage(null, "/ledon");
    if(MenuItemId == "off") OnEvent_ChatWndSendMessage(null, "/ledoff");   
}

function OnGetScriptCommands(){
    var ScriptCommands = "<ScriptCommands>";
    ScriptCommands    +=     "<Command>";
    ScriptCommands    +=         "<Name>ledon</Name>";
    ScriptCommands    +=         "<Description>Turn on webcam LEDs</Description>";
    ScriptCommands    +=     "</Command>";
        ScriptCommands    +=     "<Command>";
    ScriptCommands    +=         "<Name>ledoff</Name>";
    ScriptCommands    +=         "<Description>Turn off webcam LEDs</Description>";
    ScriptCommands    +=     "</Command>";
    ScriptCommands    += "</ScriptCommands>";

    return ScriptCommands;
}

is there a way i can test if there is a logitech webcam installed? maybe /test and if there is a reg key i will get a message back saying true or false
07-16-2010 07:57 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Logitech LED Disable - by SourSpud on 11-25-2009 at 10:35 PM
RE: Logitech LED Disable - by Spunky on 11-25-2009 at 11:36 PM
RE: Logitech LED Disable - by SourSpud on 11-25-2009 at 11:39 PM
RE: Logitech LED Disable - by Spunky on 11-26-2009 at 12:17 AM
RE: Logitech LED Disable - by SourSpud on 11-26-2009 at 12:26 AM
RE: Logitech LED Disable - by Spunky on 11-26-2009 at 12:28 AM
RE: Logitech LED Disable - by SourSpud on 11-26-2009 at 12:32 AM
RE: Logitech LED Disable - by Spunky on 11-26-2009 at 02:03 AM
RE: Logitech LED Disable - by SourSpud on 11-26-2009 at 02:17 AM
RE: Logitech LED Disable - by SourSpud on 11-27-2009 at 07:28 PM
RE: Logitech LED Disable - by Spunky on 11-27-2009 at 11:28 PM
RE: Logitech LED Disable - by SourSpud on 11-27-2009 at 11:46 PM
Logitech Help - by tobby on 07-16-2010 at 07:57 PM
RE: Logitech Help - by CookieRevised on 07-17-2010 at 12:40 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On