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).