iParanormalx
The strange one
- Messages
- 1,276
- Location
- US
Im doing this for a hilariously dumb reason... but I want to have a really easy way to count how many beers I drink on my Twitch stream.
There are a few simple elements i'm trying to take advantage of here:
What I'm thinking is if i have a text file c:\number.txt and the only thing inside of that text document is a 0 then I could have a simple 2-5 line script that would do something like this:
c:\number.txt + 1 output to > c:\number.txt
I want to take the value that is currently inside of number.txt, add 1 to it, and overwrite that new value into number.txt.
The end result is - every time I open a beer, i'll press Shift+F9 and the broadcast will update how many beers I've been drinking.
Problem is syntax for cmd and math is freaking weird... Here are the sources i've been looking at:
I'm no programmer... HALP
There are a few simple elements i'm trying to take advantage of here:
- I can use a .txt file as a source on my broadcast
- I can add a hot-key to a shortcut in windows such as Shift+F9 which will run a shortcut to said .bat file
What I'm thinking is if i have a text file c:\number.txt and the only thing inside of that text document is a 0 then I could have a simple 2-5 line script that would do something like this:
c:\number.txt + 1 output to > c:\number.txt
I want to take the value that is currently inside of number.txt, add 1 to it, and overwrite that new value into number.txt.
The end result is - every time I open a beer, i'll press Shift+F9 and the broadcast will update how many beers I've been drinking.
Problem is syntax for cmd and math is freaking weird... Here are the sources i've been looking at:
I'm no programmer... HALP
Last edited: