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:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Logitech LED Disable
Not sure if this will work as I don't have the camera. It's a bit longer than I said it would be as I added menus etc incase you wanted to pass it around... Let me know if you want to distribute it and I'll package it into a PLSC file for easy importing.

js 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;
}
<Eljay> "Problems encountered: shit blew up" :zippy:
11-26-2009 12:17 AM
Profile 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