What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [help please] timer

[help please] timer
Author: Message:
skyserpent
Junior Member
**

Bacon

Posts: 96
32 / Male / –
Joined: Aug 2006
O.P. [help please] timer
code:
function OnEvent_Timer(tId) {
    if(Wnd != null) {
        Wnd.SendMessage("Test");
        MsgPlus.AddTimer("timer",500000);
    }
}

why doesn't that work? anyone?

thanks for all help.
03-07-2007 08:17 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [help please] timer
Please always give enough data when requesting support...

For scripts, post the entire source of scripts or at least all the code involved for the problem. Otherwise we can't help you properly or give you a decent answer.

eg:
- it might be that you don't create a timer anywhere
- it might be that Wnd is not what you think it will be
- it might be that Wnd is not globally defined
- it might be that there is no chatwindow open anymore to send a message to
- it might be that you can't edit the chatbox in the chat window at that time
- it might be that another user has signed in while the previous timer was still running
- 500000 equals 500 seconds, not 50 seconds
- etc... etc...

;)

This post was edited on 03-07-2007 at 10:10 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-07-2007 08:48 PM
Profile PM Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: [help please] timer
var Wnd;
function OnEvent_ChatWndCreated(ChatWnd){
Wnd = ChatWnd;
MsgPlus.AddTimer("timer",500000);
}
...
another idea? :D
03-07-2007 09:03 PM
Profile E-Mail PM Find Quote Report
TheGuruSupremacy
Full Member
***

Avatar

Posts: 367
Reputation: 19
34 / Male / Flag
Joined: Nov 2006
RE: [help please] timer
quote:
Originally posted by felipEx
var Wnd;
function OnEvent_ChatWndCreated(ChatWnd){
Wnd = ChatWnd;
MsgPlus.AddTimer("timer",500000);
}
...
another idea? :D

This is a possibility...You can retrive ChatWnd in other ways
for example by RecievedMessage event or you can enumerate chatwnds opened and choose one or if you want send a message to determinated contact you can use a code like this

var Chatwnd
Chatwnd=Messenger.OpenChat("contactemail")
Chatwnd.SendMessage("okie")

This post was edited on 03-07-2007 at 09:23 PM by TheGuruSupremacy.
03-07-2007 09:16 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [help please] timer
quote:
Originally posted by felipEx
var Wnd;
function OnEvent_ChatWndCreated(ChatWnd){
Wnd = ChatWnd;
MsgPlus.AddTimer("timer",500000);
}
...
another idea? :D
but that wouldn't work as soon as you have more than one chat window open...



-------

Without the proper full code, we can't give a decent answer/solution... Every 'suggestion' will have flaws and/or wont work at all. It would all be guessing.

This post was edited on 03-07-2007 at 11:56 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-07-2007 10:06 PM
Profile PM Find Quote Report
skyserpent
Junior Member
**

Bacon

Posts: 96
32 / Male / –
Joined: Aug 2006
O.P. RE: [help please] timer
basically what i wanted was every so often it sends a message to all open conversation windows
03-07-2007 10:08 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [help please] timer
We could provide a script for that*, but then again you still wont know what was wrong in your first code.

So, if you wanna know what is wrong in your code, post the complete code you have....

;)



*But such a script would be extremely highly annoying, not to mention the basis for stupid script-kiddie virusses which send links to every open window to advertise or spread something.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-07-2007 10:12 PM
Profile PM Find Quote Report
skyserpent
Junior Member
**

Bacon

Posts: 96
32 / Male / –
Joined: Aug 2006
O.P. RE: [help please] timer
ah cunning idea, project over lol

i actually copied the script out of one of my other scripts and probably missed a bit that's why it doesn't work. thanks anyways guys but it is a bad idea as you said. thanks again
03-07-2007 10:16 PM
Profile E-Mail PM Web Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
RE: [help please] timer
it is easy to make, but it will be annoying to both you and your contacts.

quote:
Originally posted by CookieRevised
such a script would be extremely highly annoying, not to mention the basis for stupid script-kiddie virusses which send links to every open window to advertise or spread something.

>.>
[quote]
Ultimatess6
: What a noob mod
03-07-2007 10:23 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


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