Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- startTime := 0
- timeArray := []
- ~RButton::
- startTime := A_TickCount
- ;MsgBox, %startTime%
- timeArray:= []
- return
- +~Lbutton::
- ;^j::
- timeArray.Push(A_TickCount - startTime)
- startTime := A_TickCount
- return
- !^RButton::
- file := FileOpen("myFile.txt", "r")
- for timeStamp in timeArray
- {
- file.write(timeArray[timeStamp])
- file.write("`n")
- }
- file.write("Done")
- file.write("`n")
- file.Close()
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement