Gif
Posted: 30 Sep 2020, 07:48
Tem alguma coisa da biblioteca padrao do ahk pra exibiçao de gif em gui?
Let's help each other out
https://www.autohotkey.com/boards/
https://www.autohotkey.com/boards/viewtopic.php?f=69&t=81615
Code: Select all
var := A_ScriptDir . "/exemplo_de_gif.gif" ; ATENCAO !! AJUSTE AQUI O CAMINHO DO ARQUIVO .GIF (GIF ANIMADO).
Gui, Add, ActiveX, x0 y0 w600 h600 vWB, shell explorer
wb.Navigate("about:blank")
html := "<html>`n<title>name</title>`n<body>`n<center>`n<img src=""" var """ >`n</center>`n</body>`n</html>"
wb.document.write(html)
Gui, show, w600 h600 Center
Code: Select all
html := "<html>`n<head>`n<title> Testando </title>`n<meta charset="utf-8" />`n<link rel="stylesheet" type="text/css" href="estilo.css">`n</head><body>`n<img src="Teste.gif" class="largura-cheia" >`n</body>`n</html>"
Code: Select all
.largura-cheia{
width:100%;
height:560px;
}
Code: Select all
var := A_ScriptDir . "/exemplo_de_gif.gif" ; ATENCAO !! AJUSTE AQUI O CAMINHO DO ARQUIVO .GIF (GIF ANIMADO).
Gui, Add, ActiveX, x0 y0 w%A_ScreenWidth% h%A_ScreenHeight% vWB, shell explorer
wb.Navigate("about:blank")
html := "<html>`n<title>name</title>`n<body>`n<img src=""" var """ >`n</body>`n</html>"
wb.document.write(html)
Gui, show, w%A_ScreenWidth% h%A_ScreenHeight%, TEST
Code: Select all
var := A_ScriptDir . "/exemplo_de_gif.gif" ; ATENCAO !! AJUSTE AQUI O CAMINHO DO ARQUIVO .GIF (GIF ANIMADO).
Gui, Add, ActiveX, x0 y0 w%A_ScreenWidth% h%A_ScreenHeight% vWB, shell explorer
wb.Navigate("about:blank")
html := "<html>`n<title>name</title>`n<body>`n<img src=""" var """ >`n</body>`n</html>"
wb.document.write(html)
Gui, +LastFound -Border -Caption
Gui, Show, x0 y0 w%A_ScreenWidth% h%A_ScreenHeight%, TESTE
Code: Select all
#SingleInstance, Force
Gui, Add, ActiveX, x0 y0 w%A_ScreenWidth% h%A_ScreenHeight% vWB, shell explorer
wb.Navigate("about:blank")
html =
(
<!DOCTYPE html>
<html>
<head>
<style>
img {
width: %A_ScreenWidth%px;
height: %A_ScreenHeight%px;
}
</style>
<body>
<img src="%A_ScriptDir%/exemplo_de_gif.gif">
</body>
</html>
)
wb.document.write(html)
Gui, show, w%A_ScreenWidth% h%A_ScreenHeight% Center