Hello I've fallen In love with your script it's the most beautiful one for creating text, and its so well documented, but I've been struggling trying to get it to render images so I can have a cute graphic above the text while I move it.
I tried this and notice that I was getting rectangles of random colors with the dimensions of the images in path so I knew it was kind of working and went back to troubleshooting the issue.
Code: Select all
path := "img.png"
ir := ImageRender()
ir.Render(path, "c:Random")
After a few hours of messing around I got it to work with the same code after closing all my open apps and scripts and it worked!
Seemed like the issue was the fact had the image opened in MS paint which gave the window the title of "img.png - Paint". half of my images work after adding "SetTitleMatchMode 3" to the top of the script.
Sadly the other half still didn't work so I went back to troubleshooting, the 2nd issue seems to be related to the dimensions of the images, only the ones with either a width or height larger than my screen size seemed to work, I'm assuming something in script checks then updates the canvas if its larger than the screen size?
I don't think I'm smart enough to fix the 2nd issue but ill try my best to help >.<
Gonna follow the suggestion you gave brentor on how to instance/merge the ImageRender with TextRender if this gets figured out, thank you again for this script its so Good!
Edit: I found a work around for now by changing the follow and scaling the image by 1
Code: Select all
; Draw image using GDI.
; if (q = 0 || w == width && h == height)
if (q = 0 || w != width && h != height)
AutoHotkey U64 1.1.34.03 WIN10