| mickael9 Full Member
 
    
 
 Posts: 117
 Reputation: 3
 34 /
  /  Joined: Jul 2005
 
 | | RE: RE: Automatically add Emoticons quote:Originally posted by Huhu_Manix
 Someone know how we can add emo with a script ?
 
 
 code:function OnEvent_Timer(sTimerId)
 {
 if (sTimerId == "ClickAddButton")
 {
 var hwnd = Interop.Call("User32", "FindWindowW", "ThunderRT6FormDC", "Emoticon Adder"); // Find the Emoticon Adder window
 if (hwnd != 0)
 {
 hwnd = Interop.Call("User32", "FindWindowExW", hwnd, 0, "ThunderRT6CommandButton", 0); // Find the Add button
 if (hwnd != 0)
 {
 Interop.Call("User32","SendMessageW", hwnd, 245, 0, 0); // Click it !
 }
 }
 }
 }
 var shell  = new ActiveXObject("WScript.Shell");
 var folder = MsgPlus.ScriptFilesPath + "\\emo";
 
 shell.Run('"' + folder + '\\EmoAdder.exe"', 6, false);
 MsgPlus.AddTimer("ClickAddButton",2000);
 
 This post was edited on 08-21-2006 at 12:46 AM by mickael9.
 | 
 |