Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Prerequisites:
- ;A file named reps.txt that contains a number in the same directory as this file
- FileRead, Reps, reps.txt ;Reads in the reps.txt file for the number of reps
- ;and stores it in Reps variable
- FileDelete, temp.txt ;Deletes the temp.txt file if it exists
- NumpadAdd:: ;Hotkey function for numpad +
- Reps += 5 ;Adds 5 to the Reps variable
- FileAppend, %Reps%, temp.txt ;Creates temp.txt and writes the number of reps to the file
- FileCopy, temp.txt, reps.txt, 1 ;Copies temp.txt over reps.txt and overwrites
- FileDelete, temp.txt ;Deletes temp.txt file
- Return ;Ends hotkey function for numpad +
- NumpadSub:: ;Hotkey function for numpad -
- Reps -= 5 ;Subtracts 5 from the Reps variable
- FileAppend, %Reps%, temp.txt ;Creates temp.txt and writes the number of reps to the file
- FileCopy, temp.txt, reps.txt, 1 ;Copies temp.txt over reps.txt and overwrites
- FileDelete, temp.txt ;Deletes temp.txt file
- Return ;Ends hotkey function for numpad -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement