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

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
kunkel321
Posts: 1047
Joined: 30 Nov 2015, 21:19

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.
ste(phen|ve) kunkel
User avatar
watagan
Posts: 80
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: 1444
Joined: 13 Aug 2016, 21:04
Contact:

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 (v1)”

Who is online

Users browsing this forum: No registered users and 185 guests