Jump to content
Sign in to follow this  
Dethredic

msn monetering function

Recommended Posts

Hmm, I don't have a "switch users" option for MSN Live, but then again, I haven't seen windows messenger (first thing I turn off on reformats) in years.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Hmm, I don't have a "switch users" option for MSN Live, but then again, I haven't seen windows messenger (first thing I turn off on reformats) in years.

umm smoke ... i think he means when his brother logs on to his account the WinXP boot up accounts :lmao:

Edited by Vicks

Share this post


Link to post
Share on other sites

umm smoke ... i think he means when his brother logs on to his account the WinXP boot up accounts :lmao:

That makes no sense... isn't that what they make passwords for?

Edit:

Unless you mean the brother is signing back in to his own account at startup, then just put the exe in the start up folder.

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

well as i see it he knows his brothers WinXP pass or his brother is known as a guest....

and when he runs the script on his brothers WinXP account and hes on his it exits his msn as well

for example

====== <--- this is his brothers account and the scripts on it

====== <--- and when he runs his WinXP log on the msn script kills his msn

i hope this makes sense maybe confusing alittle

Share this post


Link to post
Share on other sites

well as i see it he knows his brothers WinXP pass or his brother is known as a guest....

and when he runs the script on his brothers WinXP account and hes on his it exits his msn as well

for example

====== <--- this is his brothers account and the scripts on it

====== <--- and when he runs his WinXP log on the msn script kills his msn

i hope this makes sense maybe confusing alittle

Regardless, what's stopping it from running properly placed in the Startup folder, or having it in the Reg as run at start up?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Regardless, what's stopping it from running properly placed in the Startup folder, or having it in the Reg as run at start up?

nothing the problem is the script runs on his WinXP account instead of JUST his brothers...hmm

i still don't get why he can't turn off the script when hes on... and turn the script on when its his bro's turn

Share this post


Link to post
Share on other sites

if your the admin and your bro has a limited account or is the guest use this i haven't tested it though

if isadmin() then 
    
else 
    While 1
    if processexists("your msn") then 
        sleep("100000") 
        processclose("your msn")
        msgbox(0 , "Time" , "your time is up only 10 mins per day on msn")
    endif
    WEnd
    endif

might also eat alot of cpu becuase its keep checking processes

Share this post


Link to post
Share on other sites

if your the admin and your bro has a limited account or is the guest use this i haven't tested it though

if isadmin() then 
    
else 
    While 1
    if processexists("your msn") then 
        sleep("100000") 
        processclose("your msn")
        msgbox(0 , "Time" , "your time is up only 10 mins per day on msn")
    endif
    WEnd
    endif

might also eat alot of cpu becuase its keep checking processes

You'd be amazed at what a Sleep(10) would do in that loop :lmao:

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

You'd be amazed at what a Sleep(10) would do in that loop :ph34r:

yea your right it took me less then a min to write that though and had no time to even test it :lmao:

and he also said that he wanted msn to stay open for 10mins

Edited by Vicks

Share this post


Link to post
Share on other sites

ok guys thanks for the help.

Vicks had the idea right.

i have a winXp user account (administerator)

my bro has a winXp user account (limited) (no password for his account)

i "swich users" leaving my accout running as well, msn is still runnning

in his winxp user account the script finds the process(msn) under my name as running so it starts counting down(bad)

i need the script to check which winxp user account the process belongs to


"Its not about the 30 inch 1080p display, or the SLI 8800 ultras, or the DDR3 memory. It's about when you turn on your PC, does it return the favor?"Math is like sex. Sure, it may give some practical results, but that is not why we do it

Share this post


Link to post
Share on other sites

ok guys thanks for the help.

Vicks had the idea right.

i have a winXp user account (administerator)

my bro has a winXp user account (limited) (no password for his account)

i "swich users" leaving my accout running as well, msn is still runnning

in his winxp user account the script finds the process(msn) under my name as running so it starts counting down(bad)

i need the script to check which winxp user account the process belongs to

hmmm im haven't test this either ... but try it and see if it works .... i think you should find a better countdown not sure if mine even works never done a DO loop before :lmao:

#NoTrayIcon
#include <File.au3>
#Include <Date.au3>
$timer1 = Global 100000
If Not FileExists("c:\Log.txt") Then
     _FileCreate("c:\Log.txt")
 EndIf
 
If IsAdmin() Then
    
Else
    If @LogonDomain = "Lowy Gunnewiek" Then
        _Countdown()
    EndIf
EndIf


    While 1
        Sleep(10)
        WEnd
    
    Func _Countdown()
do
$timer1 = $timer0
sleep 1000
until
$timer1 = 0
_MSN()
EndFunc

Func _MSN()
        If ProcessExists("your msn") Then
            _Countdown()
            ProcessClose("your msn")
             msgbox(0 , "Time" , "your time is up only 10 mins per day on msn")
             _FileWriteToLine("c:\Log.txt", 1 & @CRLF, "User ="&@LogonDomain&" Time ="& _NowTime() , 1)
             EndIf
             EndFunc

edited maybe this timer will work

Edited by Vicks

Share this post


Link to post
Share on other sites

i just found out that my bros account is an administrater as well

dont know if this changes anything but ide thought ide let u know


"Its not about the 30 inch 1080p display, or the SLI 8800 ultras, or the DDR3 memory. It's about when you turn on your PC, does it return the favor?"Math is like sex. Sure, it may give some practical results, but that is not why we do it

Share this post


Link to post
Share on other sites

i just found out that my bros account is an administrater as well

dont know if this changes anything but ide thought ide let u know

yes it changes alot... because it was saying if the admins on to not run the script.... hmm can you change his account to limited or guest :lmao:

Share this post


Link to post
Share on other sites

maby but i dont want to

id would be better/easer for me to change the script (hed get mad that he cant do some things he can normally do)

limiting him to 10 mins per day is issued by my parents

sorry for the inconvience


"Its not about the 30 inch 1080p display, or the SLI 8800 ultras, or the DDR3 memory. It's about when you turn on your PC, does it return the favor?"Math is like sex. Sure, it may give some practical results, but that is not why we do it

Share this post


Link to post
Share on other sites

maby but i dont want to

id would be better/easer for me to change the script (hed get mad that he cant do some things he can normally do)

limiting him to 10 mins per day is issued by my parents

sorry for the inconvience

well 10 mins is nothing he might as well be banned from msn.... and in this case forget the message box telling him he has 10 mins just run a script on both accounts and shut it off when its your turn vola

Share this post


Link to post
Share on other sites

wats an egg timer???

http://www.shutterpoint.com/Photos-ViewPhoto.cfm?id=153559

Cheers

Kurt

Edited by /dev/null

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...