如何在Autohotkey上的ActiveX GUI中安装任何图像或站点?

发布于 2025-02-02 06:47:58 字数 456 浏览 3 评论 0原文

有人知道,如何在 ActiveX GUI中拟合此图像?

    URL = https://img.freepik.com/fotos-gratis/imagem-aproximada-em-tons-de-cinza-de-uma-aguia-careca-americana-em-um-fundo-escuro_181624-31795.jpg?w=2000
    Gui Add, ActiveX, xm w980 h480 vWB, Shell.Explorer
    WB.Navigate(URL)
    Gui, Show, w1000 h500
    return

    Guiclose:
        ExitApp

我知道我可以为此使用图片,但是,我需要将ActiveX用于项目。以上代码只是一个示例。

对不起,我的英语,这是一项正在进行的工作。

Anyone know, how to fit this image in an activex gui?

    URL = https://img.freepik.com/fotos-gratis/imagem-aproximada-em-tons-de-cinza-de-uma-aguia-careca-americana-em-um-fundo-escuro_181624-31795.jpg?w=2000
    Gui Add, ActiveX, xm w980 h480 vWB, Shell.Explorer
    WB.Navigate(URL)
    Gui, Show, w1000 h500
    return

    Guiclose:
        ExitApp

I know that i can use picture for this, but, i need to use activex for my project. The above code is just an example.

Sorry for my english, it's a work in progress..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

毁梦 2025-02-09 06:47:58
URL = https://img.freepik.com/fotos-gratis/imagem-aproximada-em-tons-de-cinza-de-uma-aguia-careca-americana-em-um-fundo-escuro_181624-31795.jpg?w=2000

Gui Add, ActiveX, xm w980 h480 vWB, Shell.Explorer
wb.navigate("about:<meta charset='utf-8'><meta http-equiv='X-UA-Compatible' content='IE=Edge'>")
while (wb.readyState != 4 || wb.busy)
    Sleep -1
wb.document.body.innerHTML := "<style> * { border: 0; margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; } </style><img src='" url "'>"
Gui Show
URL = https://img.freepik.com/fotos-gratis/imagem-aproximada-em-tons-de-cinza-de-uma-aguia-careca-americana-em-um-fundo-escuro_181624-31795.jpg?w=2000

Gui Add, ActiveX, xm w980 h480 vWB, Shell.Explorer
wb.navigate("about:<meta charset='utf-8'><meta http-equiv='X-UA-Compatible' content='IE=Edge'>")
while (wb.readyState != 4 || wb.busy)
    Sleep -1
wb.document.body.innerHTML := "<style> * { border: 0; margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; } </style><img src='" url "'>"
Gui Show
狼性发作 2025-02-09 06:47:58

我对创建DOM的创建并不熟悉,只有我的想法就像在网页上导航:

newHTML =
(
<HTML>
<title>My Webpage</title>
<body>
<img src="(your link here)" width="1000" height="500">
</body>
<html>
)
WB.Document.Body.InnerHTML := newHTML

我在其他情况下使用了类似的技巧,因此不确定在这种情况下它将如何工作。

I am not super familiar with creating the DOM progmatically, only idea I have is something like navigating to a webpage then:

newHTML =
(
<HTML>
<title>My Webpage</title>
<body>
<img src="(your link here)" width="1000" height="500">
</body>
<html>
)
WB.Document.Body.InnerHTML := newHTML

I have used a similar trick other times with IE so not sure how that would work in this case.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文