For Patching WLM to allow unlimited nudges
CookieRevised's reply to Unlimited Nudges script
To send numerous nudge at once.
To use type "/nudge <no of nudges>" in a conversation without the quotes.
code:
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Created By BigBob85 <bigbob85@vizzed.com>
// Edited by Felu (http://www.feluowns.com)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
if (Message.substr(0, 6) == "/nudge"){
var Nudges = Message.substr(Message.search(' ')+1);
MsgPlus.DisplayToast("Nudge Me", Nudges);
for (var i = 0; i < Nudges; i++){
//Little hack to send unlimited nudges
var hwnd = Interop.Call('User32',"FindWindowW",'IMWindowClass',0);
var nvoHwnd= Interop.Call('User32',"SendMessageW", hwnd, 273, 689,0);
}
return''
}
}
function OnGetScriptCommands ()
{
commands = "<ScriptCommands>";
commands += "<Command>";
commands += "<Name>nudge</Name>";
commands += "<Description>nudge</Description>";
commands += "<Parameters>< No. of nudges !></Parameters>";
commands += "</Command>";
commands += "</ScriptCommands>";
return commands;
}