Jump to content

zocker30

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by zocker30

  1. Hey, I wanted to write a pc timer for my little brother so that my parents can see how much he plays every day. Now what I want the script to do: -no tray icon -a small menu window with three buttons: pause, current time and yesterday time :::Pause will run a file called shield.exe, current time will display the played time so far and yesterday time will display the time from yesterday -Count time while shield.exe is running -log time when pc was turned on and off, then finally substract the pause time which was logged while shield.exe was running, to get the final play time -reset the play time everyday and save the old time for the yesterday time function maybe by renaming a text document and displaying its content in a message box so he doesnt have access to the txt file to change the times... Explanation of shield: Shield.exe is a script I already made myself, its basically a blurred window covering the whole screen blocking all mouseclicks etc. you cant close it whatever you do. Only pressing esc closes it. Notrayicon is easy, the gui is also easy with koda form designer. Which is the best way to record the open time of shield.exe and finally substract it from the total time? And how do you record the time when the pc was shutdown ? Recording the turn on time is easy, i got a script which sync's the system time with an online server and then writes the current time to a txt file. The everyday reset could be done by using the above mentioned script which syncs the system time and date and then see if its already the next day. Another question: Could this be done automatically? Like if the pc is idle for 10 seconds (no keyboard presses or mousemovements for 10 sec) open shield.exe (to prevent him from watching long videos and letting that count as a pause) and the record the idle time and when the mouse gets moved or a key gets pressed close shield.exe. Instead of the menu just a shortcut on the desktop which substracts the idle time from the total time and then shows both current and yesterday's time. Thanks in advance for suggestions on how to make this & best regards, Z30
  2. Works perfect ! Thanks alot :DDD
  3. Thanks to everyone posting! Ill try all of this now !
  4. Hey =) i need some help. My problem/what i want: A program that checks every line's ending for ".php" and if it ends with ".php" the program writes the line to a second text file. Example: I have a textfile with this inside: www.google.com www.google.com/index.php www.youtube.com www.youtube.com/login.php Now i run the autoit program , and it check everyline for the ending ".php". Now it writes every of those lines to a text document and it will look like this: www.google.com/index.php www.youtube.com/login.php Thats what it should do... Anyone know how to make such a program? Thanks in advance & best regards
  5. Hello, i just started a script which should do the following : 1.) inputbox , where u write one of three things ( 1,2,3 ) 2.) A If function changes the value of a variable If $inputbox = "1" then $Answer = 1 elseif $inputbox = "2" then $Answer = 2 elseif $inputbox = "3" then $Answer = 3 3.) Calculate 1 + $Answer and make a massagebox ! Thanks for your Help and Time
×
×
  • Create New...