Jump to content

Recommended Posts

For anyone who cares, I ended up just having it continuously writing it to a file.

$file = fileopen("C:\Documents and Settings\other\My Documents\Stuff\timer.txt", 0)
$time = filereadline($file)
MsgBox(4096, "Test", $time)

$time = $time - 1

$file2 = fileopen("C:\Documents and Settings\other\My Documents\Stuff\timer.txt", 2)
FileWriteLine($file, $time)
until $time < 0
Edited by imacrazyballoono
Link to post
Share on other sites

Put this in your script, it'll do whatever is there when the script exits

Func OnAutoItExit ( )
 ;Your code here

AutoIt Help File:

Defines a user-defined function that will be called when the script exits.

Edited by AutoItKing
http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script]
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...