My code.
Gui, Add, Html, x10 y10 w200 h200 vMyHtmlControl,
<html>
<head>
<style>
body { background-color: black; }
h1 { color: yellow; margin-left: 20px; }
</style>
</head>
<body>
<h1>Coanim</h1>
</body>
</html>
Gui, Show
error message
Error: Parameter #2 Invalid.
Specifically Html
Line#001:Gui, Add, Html, x10 y10 w200 h200 vMyHtmlControl,
<html>
<head>
<style>
How can I fix this?
Parameter #2 Invalid?
Re: Parameter #2 Invalid?
fix what? what uve written so far is pure nonsense. there is no HTML guicontrol type, which is exactly what the error message is complaining about. theres nothing to fix, delete everything and start over(preferably reading the actual documentation alongside)
Re: Parameter #2 Invalid?
I wonder if this is chatbot output. It seems like it would be hard for a person to make up this stuff. Chatbot output is not supported on this forum.
Re: Parameter #2 Invalid?
I was thinking the same, especially given the fact that OP has asked similar questions about implementing HTML into a GUI and was directed to several good examples, none of which resembled anything like this, of course.
@djjunko — If your code is the output of ChatGPT, please don’t post its code output again. Its code is often pure nonsense that isn’t worth trying to use as a starting point, and it’s a waste of the forum members’ time to attempt to debug it, if you can even call it that. If you had trouble implementing any of the real examples you were given, ask specifically about one of those.
If this is actually your code, then you need to realize that you can’t make up syntax in hopes that it will work. Stick to what you find in the documentation, and ask how to implement things not shown specifically in the documentation, as you have in your prior threads.