What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Question] Timer usage

Pages: (2): « First [ 1 ] 2 » Last »
[Question] Timer usage
Author: Message:
tryxter
Junior Member
**

Avatar
A. Maia Ferreira @ PTnet

Posts: 51
Reputation: 1
35 / Male / –
Joined: Jan 2007
O.P. [Question] Timer usage
What do you think of a timer being executed every 1 minutes?
Will use too much memory or slow down the system?

I really don't know how much memory it will require and if MsgPlus Timer is a great memory consumer...

Thanks a lot one more time!
01-08-2007 08:56 PM
Profile E-Mail PM Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
31 / Male / Flag
Joined: Jul 2006
RE: [Question] Timer usage
quote:
Originally posted by tryxter
What do you think of a timer being executed every 1 minutes?
Will use too much memory or slow down the system?

I really don't know how much memory it will require and if MsgPlus Timer is a great memory consumer...

Thanks a lot one more time!
Every one minute would take a lot of mem usage.
I recomend once every 4 or 5 minutes
01-08-2007 08:57 PM
Profile E-Mail PM Find Quote Report
tryxter
Junior Member
**

Avatar
A. Maia Ferreira @ PTnet

Posts: 51
Reputation: 1
35 / Male / –
Joined: Jan 2007
O.P. RE: [Question] Timer usage
Ok ;)

Thanks a lot
01-08-2007 08:59 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Question] Timer usage
I have a specific function of Screenshot Sender 4 being 100 miliseconds. Its not really that much of an issue.
01-08-2007 09:00 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [Question] Timer usage
tryxter, what do you want to do with the timer?
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-08-2007 09:27 PM
Profile PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: RE: [Question] Timer usage
Timers don't take up a lot of memory at all.
01-08-2007 09:59 PM
Profile PM Find Quote Report
tryxter
Junior Member
**

Avatar
A. Maia Ferreira @ PTnet

Posts: 51
Reputation: 1
35 / Male / –
Joined: Jan 2007
O.P. RE: [Question] Timer usage
quote:
Originally posted by CookieRevised
tryxter, what do you want to do with the timer?

The objective is to search some text inside an ini file, and output that text.

Btw, I tested the memory consume using 5 secs timers, and I didn't notice any change at all, but I don't know if that change was visible...

(Ok, I found the edit option :p)

This post was edited on 01-08-2007 at 11:25 PM by tryxter.
01-08-2007 11:13 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: [Question] Timer usage
quote:
Originally posted by tryxter
quote:
Originally posted by CookieRevised
tryxter, what do you want to do with the timer?
The objective is to search some text inside an ini file, and output that text.
Ok... but what have timers to do with this?

quote:
Originally posted by tryxter
(Ok, I found the edit option :p)
cool :D
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-08-2007 11:40 PM
Profile PM Find Quote Report
tryxter
Junior Member
**

Avatar
A. Maia Ferreira @ PTnet

Posts: 51
Reputation: 1
35 / Male / –
Joined: Jan 2007
O.P. RE: [Question] Timer usage
quote:
Originally posted by CookieRevised
Ok... but what have timers to do with this?
Oh, well, the text read from the file has dates and times. When the timer is triggered it will read the ini file and will look for a time (that should correspond to the current time), and if this action returns 'true', it will do something (like display a toast or something, not decided yet).

quote:
Originally posted by CookieRevised
cool :D
lol :p
01-08-2007 11:51 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: [Question] Timer usage
quote:
Originally posted by tryxter
quote:
Originally posted by CookieRevised
Ok... but what have timers to do with this?
Oh, well, the text read from the file has dates and times. When the timer is triggered it will read the ini file and will look for a time (that should correspond to the current time), and if this action returns 'true', it will do something (like display a toast or something, not decided yet).
Why not make your schedular the other way around so you avoid intensive file read operations all the time:

Read the file only when you script starts and store everything in memory. Make a timer which fires every time interval (smallest amount defined in your alarms in the ini, I assume it would be 1000ms) and compare the current time with the time in memory, if it is the same or higher, fire the event.

This post was edited on 01-08-2007 at 11:58 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-08-2007 11:57 PM
Profile PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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