[GDI+ Object] Subtitle.Render() - Beautiful Text on Screen

Post your working scripts, libraries and tools
kunkel321
Posts: 214
Joined: 30 Nov 2015, 21:19
Facebook: https://www.facebook.com/kunkel321
Google: kunkel321

Re: [GDI+ Object] Subtitle.Render() - Beautiful Text on Screen

22 May 2018, 15:43

Actually, another possible glitch: It seems that, when the text is rendered, all {Tab} chars are stripped(?) This is the case whether reading from a text file, or a variable from within the script. I don't think it's tied to the .Desktop part.
User avatar
watagan
Posts: 69
Joined: 03 Nov 2020, 05:17

Re: [GDI+ Object] Subtitle.Render() - Beautiful Text on Screen

03 Dec 2020, 22:57

Hello, I'm encountering a problem using this function/class.
I created a script to display volume level/mute status. So on script startup I create an object then I use render() to update text when needed.
All works well for a couple of minutes then objects stop showing. It seems they are auto-destroyed or something.
Any help would be great.
iseahound
Posts: 617
Joined: 13 Aug 2016, 21:04
GitHub: iseahound

Re: [GDI+ Object] Subtitle.Render() - Beautiful Text on Screen

07 Dec 2020, 11:24

Your object might be getting destroyed by AutoHotkey.

Code: Select all

; not good, your object is local. 
fun() {
a := Subtitle.Render("hi")
}

Code: Select all

#Persistent
a := Subtitile.Render("hi")

fun(a) {
a.Render("what's up?")
}

Return to “Scripts and Functions”

Who is online

Users browsing this forum: 20170201225639 and 24 guests