Question / Help hotkey for add numbers

flaav

New Member
Hello !

I would like to know if there is an plugin for everytime I press an hotkey I can add +1 number to the screen. I mean everytime I press the hotkey is gonna add +1.

Ex: if I press 3 times its gonna show 3

If there is a plugin or something similar let me know. Thanks guys and sorry for my bad english.
 

hilalpro

Member
You can do this by using Autohotkey and OBS text source.

Download/install
http://ahkscript.org/download/ahk-install.exe

Create a Autohotkey script (save as .ahk)
Code:
F8::

GetKeyState, state, F8
if state = D

	Counter += 1

filedelete, Counter.txt
fileappend, %Counter%, Counter.txt

return

Once you run the script and press F8 it will create a text file on the same directory named Counter.txt containing the count, you can simply add that file as a text source in OBS.
 

flaav

New Member
There is not directly a plugin or something that you dont need to open separatly ? Cause I have already a lot of .exe open already when I stream.
 

flaav

New Member
Thank you very much, what can be the script if I want a reset everytime I start a stream ?

Because I need one who never goes to zero and one who restarts everytime I stream.

There is any possibility ?
 

hilalpro

Member
This one will run and always save the count
Code:
F8::

IniRead, SCounter, v.ini, SCounter, Nr

   SCounter += 1

filedelete, Savedcount.txt
fileappend, %SCounter%, Savedcount.txt
IniWrite, %SCounter%, v.ini, SCounter, Nr

return

This one will not save the count and should immediately reset it if you replace F2 with the same hotkey OBS uses for streaming.
Code:
F2::
filedelete, Counter.txt
reload

F9::

   Counter += 1

filedelete, Counter.txt
fileappend, %Counter%, Counter.txt

return
 
Top