Jump to content

Computer Logger [SOLVED]


Revolter
 Share

Recommended Posts

You could try to make it a service (not too experienced with that but I believe there's a bunch of info about that on the forum) or just put it in the start menu's startup folder or the registry startup keys... The thing is that to not make it dependant on something like the task-scheduler, it would need to always keep running. (Because if it doesn't always run, it depends on SOMETHING to start it up, be it a user or the task scheduler or whatever). About RAM usage: does it use much RAM then? Should be only a couple of megabytes... Never worried about that, maybe someone else has more experience with autoit + RAM usage.

do you know how much ram the "sleep" func is using? i want it to run every 10 minutes and i was thinking to insert the sleep( "10 min" ) in the while 1 ... wend ....

ps i know you need to convert 10 mins in miliseconds but my brain is on "stand-by" now :graduated:)

[center]Sorry for my bad english. Trying my best :Dhttp://iulianonofrei.comhttp://www.last.fm/user/Revolt666 [/center]

Link to comment
Share on other sites

do you know how much ram the "sleep" func is using? i want it to run every 10 minutes and i was thinking to insert the sleep( "10 min" ) in the while 1 ... wend ....

ps i know you need to convert 10 mins in miliseconds but my brain is on "stand-by" now :graduated:)

Lol, 10 mins = 10 x 60 seconds = 10 x 60,000 msec :(

It's not the Sleep() that is using the ram, it is the script engine that is executing it. As long as you are not increasing data stored in memory, it shouldn't increase in ram usage pretty much whatever you do...

Roses are FF0000, violets are 0000FF... All my base are belong to you.

Link to comment
Share on other sites

Lol, 10 mins = 10 x 60 seconds = 10 x 60,000 msec :graduated:

It's not the Sleep() that is using the ram, it is the script engine that is executing it. As long as you are not increasing data stored in memory, it shouldn't increase in ram usage pretty much whatever you do...

my brain considers that if the script is sleeping it should use 0.00000001 kb ram :() that much im using when im sleeping in the night :| i think

[center]Sorry for my bad english. Trying my best :Dhttp://iulianonofrei.comhttp://www.last.fm/user/Revolt666 [/center]

Link to comment
Share on other sites

my brain considers that if the script is sleeping it should use 0.00000001 kb ram :graduated:) that much im using when im sleeping in the night :| i think

There is an autoitscript engine running that executes the script. That engine is always necessary and consumes a base amount of RAM.

Roses are FF0000, violets are 0000FF... All my base are belong to you.

Link to comment
Share on other sites

Why 1-2 or a couple more MB would be an issue? Today, the average computer has at least 2GB of RAM, you think that your script running will have an impact on performance? It won't.

... unless you put in a badly formated loop which will make the processor usage go up.

And your idea of using almost "nothing" is wrong too - the exe will be loaded in the memory and it will stay there for the whole time (till the thread is terminated), so you shouldn't expect a memory usage of less than the exe's size.

I recomended you Task Scheduler because it is part of any Windows installation so there aren't any chances that it will be missing.

Your call.

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Link to comment
Share on other sites

Why 1-2 or a couple more MB would be an issue? Today, the average computer has at least 2GB of RAM, you think that your script running will have an impact on performance? It won't.

... unless you put in a badly formated loop which will make the processor usage go up.

And your idea of using almost "nothing" is wrong too - the exe will be loaded in the memory and it will stay there for the whole time (till the thread is terminated), so you shouldn't expect a memory usage of less than the exe's size.

I recomended you Task Scheduler because it is part of any Windows installation so there aren't any chances that it will be missing.

Your call.

but the user need to make the schedule alone ... and if it doesn't know how to do this? ... it's better and easier with sleep :graduated:)

[center]Sorry for my bad english. Trying my best :Dhttp://iulianonofrei.comhttp://www.last.fm/user/Revolt666 [/center]

Link to comment
Share on other sites

Nope - you can make your executable to check if the task exists, if it doesn't you can have a block of code creating the task.

Your choice in the end - you can do it either way, you have everything to work with.

Good luck,

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Link to comment
Share on other sites

Nope - you can make your executable to check if the task exists, if it doesn't you can have a block of code creating the task.

Your choice in the end - you can do it either way, you have everything to work with.

Good luck,

too complicated for me ... i'll be using again the help of the autoit forum for the entire func (of creating the task) cuz i don't have any idea how could i make it ...

[center]Sorry for my bad english. Trying my best :Dhttp://iulianonofrei.comhttp://www.last.fm/user/Revolt666 [/center]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...