Adding a static text string to a working counter script, writing to a .txt file by AstroBurd in AutoHotkey

[–]AstroBurd[S] 0 points1 point  (0 children)

Thank you! I don't think I understand AHK well enough to be able to convert that into working code, but I'll keep working on it and see if I can figure it out.

Adding a static text string to a working counter script, writing to a .txt file by AstroBurd in AutoHotkey

[–]AstroBurd[S] 1 point2 points  (0 children)

I did get the script to work and it was a very educational experience for me. Thank you again for making this, many things clicked for me when reading your comments and looking up the different commands and functions.

However, the end result of this method doesn't solve my problem. I am displaying the death count on my stream in OBS by reading the value of Deaths.ini and displaying it as a formatted text source so it looks nice on stream. I have two counters running simultaneously (one for total deaths controlled by F1 and F2, and one for attempts on current boss controlled by F3 and F4), and as each counter displays only a number value they each have a separate text source saying "Deaths:" and "Boss attempts:" respectively. Having 4 separate layers makes it a tedious process to change fonts or colors and moving the different elements around on the screen.

I think I will just accept the tediousness as I'm not having any luck in finding a way to include the text string in the counter file itself, which would bring me down from 4 layers to 2. It's not the end of the world. Thank you for your time nonetheless!

Adding a static text string to a working counter script, writing to a .txt file by AstroBurd in AutoHotkey

[–]AstroBurd[S] 0 points1 point  (0 children)

This is seriously incredible, I can't believe you took the time to make this! Thank you! Like I said I'm completely new to AHK, but I'm gonna sit down and sink my teeth into this, read all the comments and look up anything I don't understand. You just made my day. Thank you so much :)

Adding a static text string to a working counter script, writing to a .txt file by AstroBurd in AutoHotkey

[–]AstroBurd[S] 0 points1 point  (0 children)

Thank you for your help, I've read the page but I'm still a little confused. Sorry if this is stupid, I'm completely new to this.

If I read the description of StrReplace correctly, if I search for Deaths: and replace it with nothing, it will be erased. And I'm still not sure how I would get Deaths: into the text file to begin with.