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:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [preview] Voicemail 1.0
quote:
Originally posted by whiz
I could play the sound, but how would I shake the window?  I guess maybe moving it a couple of pixels and then setting a timer a few times would do it...
Indeed.

You would need to use a timer in a loop for this. Each iteration of the loop you move the window a bit (one pixels is too small I think though), then wait a bit, and then go to the next iteration, etc. It is the exact same way as Messenger does it.

To realy simulate a nudge and see what it actually does to the window you could record a video of a chatwindow when a nudge is recieved and then play that back slowly (frame by frame) so you can see how much pixels the window moved each time and in what direction. I guess the actual nudge is like 10 to 20 moves actually (and probably random) each with an interval in the order of millisecs. The final move is back to the original position of course.

Ideal would be to call that specific routine inside Messenger itself, but that would require some reverse engeneering I guess.

quote:
Originally posted by whiz
maybe make the taskbar button blink - is that possible with scripting?
yup, very possible. See the Windows API FlashWindow and FlashWindowEx if I'm not mistaken. Though, note that the taskbar button will already flash if the chat window wasn't in focus though (done by Messenger itself upon recieving incomming message).

-------

EDIT: just did a quick'n dirty test for the random placement of the window. Works perfectly so far. But the big problem is that MsgPlus.AddTimer does not allow a time of less than 100ms... and for the simulation you would need something like 10ms... :/
So, another possebility would be to use Windows timers. But you can't do that assyncroniously. So that would mean you 'lock' up all execution of Messenger for as long as the nudge simulation runs (=approx. 1 sec I think).

This post was edited on 04-23-2011 at 03:05 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
04-23-2011 02:16 PM
Profile 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