Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Doing math with variables


  • Please log in to reply
2 replies to this topic
Mathematical Gangsta
  • Guests
  • Last active:
  • Joined: --
There's an error in this script but i don't know what error.

FileRead, number, number.txt ; reads the file that saves the current number
newnumber := %number% + 1 ; adds 1 to the current number
FileDelete, number.txt ; deleted the old file with the old number
FileAppend, %newnumber%, number.txt ; makes a new file with the new number
MsgBox, %newnumber% ; shows the new number

:(

polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
newnumber := number + 1

No percent signs in expressions.

autohotkey.com/net Site Manager

 

Contact me by email (polyethene at autohotkey.net) or message tidbit


M.G.
  • Guests
  • Last active:
  • Joined: --
Thank you very much! :D