What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [beta] Voicemail 1.0 (released 12/08/2011)

[beta] Voicemail 1.0 (released 12/08/2011)
Author: Message:
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: [preview] Voicemail 1.0
Hmm...  a bit more complicated than my attempt.  :P  I just tried moving it in 3-pixel jumps every 25ms for 1 second (so it kind of goes round in circles)...
JScript code:
// on attention command, with shake enabled
if (Options.Attention.Shake)
{
    MsgPlus.AddTimer("AttentionShakeWindow:" + ChatWnd.Handle + ":A:1", 100);
    MsgPlus.AddTimer("AttentionShakeWindow:" + ChatWnd.Handle + ":B:1", 125);
    MsgPlus.AddTimer("AttentionShakeWindow:" + ChatWnd.Handle + ":C:1", 150);
    MsgPlus.AddTimer("AttentionShakeWindow:" + ChatWnd.Handle + ":D:1", 175);
}
 
// ---------------------------
 
// timer event
if (TimerId.substr(0, 20) === "AttentionShakeWindow")
{
    var Data = TimerId.substr(21, TimerId.length).split(":"); // [ChatWnd, Pos, Cycle]
    Data[0] = Number(Data[0]);
    Data[2] = Number(Data[2]);
    var Rect = Interop.Allocate(32);
    Interop.Call("user32", "GetWindowRect", Data[0], Rect);
    var Pos = [Rect.ReadDWORD(0), Rect.ReadDWORD(4), Rect.ReadDWORD(8), Rect.ReadDWORD(12)]; // [Left, Top, Width, Height]
    switch (Data[1])
    {
        case "A":
            Pos[0] += 3;
            break;
        case "B":
            Pos[1] += 3;
            break;
        case "C":
            Pos[0] -= 3;
            break;
        case "D":
            Pos[1] -= 3;
            break;
    }
    Interop.Call("user32", "SetWindowPos", Data[0], 0, Pos[0], Pos[1], Pos[2], Pos[3], 0);
    if (Data[2] < 10)
    {
        MsgPlus.AddTimer("AttentionShakeWindow:" + Data[0] + ":" + Data[1] + ":" + (Data[2] + 1), 100);
    }
}

Although that doesn't work, it just causes the window to kind of freeze (the rest of Messenger works fine, just the conversation gets stuck).

I'll give your code a go and see what happens...



Edit: seems a similar problem occurs (this might be due to the skin I'm using, not sure yet):

Before...
[Image: 1tD1Z.png]

After...
[Image: ZBveJ.png]

The window still works, but only in the bottom bit (where it 'moved' to).  So the "Add to contact list" link that's higher up doesn't do anything, but the lower one still works.



Edit (2): applying the code to a Plus! window seems to work without any problems!

And no, skins don't affect it...
[Image: attachment.php?pid=1013300]

.png File Attachment: Shake Break.png (154.81 KB)
This file has been downloaded 503 time(s).

This post was edited on 04-24-2011 at 11:54 AM by whiz.
04-24-2011 11:39 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[beta] Voicemail 1.0 (released 12/08/2011) - by whiz on 04-21-2011 at 10:06 PM
RE: [preview] Voicemail 1.0 - by CookieRevised on 04-21-2011 at 10:56 PM
RE: [preview] Voicemail 1.0 - by whiz on 04-23-2011 at 12:26 PM
RE: [preview] Voicemail 1.0 - by CookieRevised on 04-23-2011 at 02:16 PM
RE: [preview] Voicemail 1.0 - by whiz on 04-23-2011 at 03:49 PM
RE: [preview] Voicemail 1.0 - by CookieRevised on 04-23-2011 at 09:23 PM
RE: [preview] Voicemail 1.0 - by whiz on 04-24-2011 at 11:39 AM
RE: [preview] Voicemail 1.0 - by CookieRevised on 04-24-2011 at 06:13 PM
RE: [preview] Voicemail 1.0 - by whiz on 04-25-2011 at 06:55 PM
RE: [preview] Voicemail 1.0 - by foaly on 04-25-2011 at 07:52 PM
RE: [preview] Voicemail 1.0 - by whiz on 04-28-2011 at 12:54 PM
RE: [preview] Voicemail 1.0 - by KoenLemmen on 04-29-2011 at 02:20 PM
RE: [preview] Voicemail 1.0 - by whiz on 04-30-2011 at 11:35 AM
RE: [preview] Voicemail 1.0 - by whiz on 05-05-2011 at 01:10 PM
RE: [preview] Voicemail 1.0 - by SmokingCookie on 05-08-2011 at 07:42 AM
RE: [preview] Voicemail 1.0 - by whiz on 05-08-2011 at 01:04 PM
RE: [preview] Voicemail 1.0 - by SmokingCookie on 05-08-2011 at 03:23 PM
RE: [preview] Voicemail 1.0 - by whiz on 05-08-2011 at 04:07 PM
RE: [preview] Voicemail 1.0 - by SmokingCookie on 05-08-2011 at 05:07 PM
RE: [preview] Voicemail 1.0 - by whiz on 06-02-2011 at 02:12 PM
[beta] Voicemail 1.0 (released 12/08/2011) - by whiz on 08-12-2011 at 06:22 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