Nudge Open Chats - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: Nudge Open Chats (/showthread.php?tid=93732) Nudge Open Chats by vSanjo on 02-01-2010 at 03:18 PM
I'm having a little trouble with making a script for a friend that nudges open chats only. RE: Nudge Open Chats by matty on 02-01-2010 at 03:28 PM
Are you trying to nudge all open chat windows when you type /nudge? RE: Nudge Open Chats by vSanjo on 02-01-2010 at 03:44 PM
I haven't got any right now. It just wasn't working at all. RE: Nudge Open Chats by Mnjul on 02-01-2010 at 05:09 PM Does simply sending /all /nudge work? RE: Nudge Open Chats by Matti on 02-01-2010 at 05:16 PM
quote:Yes... that works apparently. Just type that every time you need it or, if you really want to, make a quick text with a custom command for it. Anyway, if you're looking to learn some scripting, this task can be a good exercise. When you got the command you're looking for when handling OnEvent_ChatWndSendMessage, iterate through the list of opened chat windows and send "/nudge" to each window. RE: Nudge Open Chats by vSanjo on 02-01-2010 at 11:35 PM
Gah. It seemed too simple so I didn't bother testing. I didn't think command + command would work! RE: Nudge Open Chats by matty on 02-02-2010 at 12:31 AM
js code: RE: Nudge Open Chats by vSanjo on 02-02-2010 at 01:58 PM
I managed to make it work to a degree. code: It sends a nudge to everyone, but if n is the amount of open chats, it does n*nudges to each chat. Any way to fix this? Edit: At first, I thought it was counting the nudges across chats, but if you change /nudge to like.. 'Rawr', it'll send n*rawr to each chat. Edit 2: code: I just removed the red. See.. I was mixed up on 2 plans. 1 was to send /all /nudge to a single chat through a button, or /nudge to each contact through a button that goes through each chat. I'm so silly. RE: Nudge Open Chats by matty on 02-02-2010 at 02:49 PM
This is happening because the OriginWnd parameter of the OnEvent_MenuClicked event is the Chat Window where the menu is clicked. This will never change unless you click the menu from another Chat Window. js code: But you also want to make sure that you can send the message to begin with: js code: |