|
You last visited: Today at 21:56
Advertisement
.Gif Datei abspielen ?
Discussion on .Gif Datei abspielen ? within the AutoIt forum part of the Coders Den category.
01/19/2013, 23:26
|
#1
|
elite*gold: LOCKED
Join Date: Sep 2012
Posts: 1,599
Received Thanks: 255
|
.Gif Datei abspielen ?
Wollte mal fragen wie ich eine .gif datei als script banner abspielen kann ... und falls jetzt sowas kommt wie in .avi umwandeln oder so .. dann bitte link für programm und script code wie ich das dann in autoit benutze ..
mfg Elsword_Hacker
|
|
|
01/19/2013, 23:33
|
#2
|
elite*gold: 2
Join Date: Jul 2009
Posts: 14,456
Received Thanks: 4,685
|
Also spontan fällt mir die Möglichkeit mit nem Browser Control ein.
Also du erstellst mit der IE.au3 nen Browserfenster von der Größe des Gifs, schiebst das Gif in den Temp Ordner und schickst dann ein Html in das Browser Control, welches in etwa so aussieht:
Code:
$html = '<img src="' & @TempDir & '\somegif.gif" />'
Ansonsten gibts sicher ne Möglichkeit mit GDI+. Google halt mal  Die Antworten die du später hier findest werden großteils sicher auch über Google kommen!
|
|
|
01/19/2013, 23:49
|
#3
|
elite*gold: 64
Join Date: May 2011
Posts: 1,229
Received Thanks: 854
|
Hab eine UDF gefunden:
Code:
#include-once
#include<IE.au3>
;===============================================================================
;
; Function Name: _GUICtrlCreateGIF()
; Description: Create an Animated GIF control
; Parameter(s): $gif [required] path and filename of the animated GIF
; $x [optional] x pos of the top-left corner
; $y [optional] y pos of the top-left corner
; $border [optional] 0 = no border
; any other = sunken border
; Requirement(s): #include <IE.au3>
; Return Value(s):
; controlID of the control created
; Author(s): elgabionline, gafrost, Ed_Maximized
;
;===============================================================================
Func _GUICtrlCreateGIF($gif,$x=0,$y=0,$border=0)
Local $pwidth,$pheight,$oIE,$GUIActiveX
_GetGifPixWidth_Height($gif, $pwidth, $pheight)
$oIE = ObjCreate("Shell.Explorer.2")
$GUIActiveX = GUICtrlCreateObj($oIE, $x, $y, $pwidth, $pheight)
$oIE.navigate ("about:blank")
While _IEPropertyGet ($oIE, "busy")
Sleep(100)
WEnd
$oIE.document.body.background = $gif
$oIE.document.body.scroll = "no"
if $border=0 then $oIE.document.body.style.border = "0px"
Return $oIE
EndFunc
;===============================================================================
;
; Function Name: _GUICtrlStopGIF()
; Description: stop an Animated GIF control created with _GUICtrlCreateGIF()
; Parameter(s): $Control [required] controlID of the control returned by _GUICtrlCreateGIF()
;
; Requirement(s): #include <IE.au3>
; Return Value(s):
; none
; Author(s): lod3n, Ed_Maximized
;
;===============================================================================
Func _GUICtrlStopGIF($Control)
_IEAction ($Control, "stop" ) ; stop
EndFunc
;===============================================================================
;
; Function Name: _GUICtrlResumeGIF()
; Description: resume an Animated GIF control created with _GUICtrlCreateGIF()
; Parameter(s): $Control [required] controlID of the control returned by _GUICtrlCreateGIF()
;
; Requirement(s): #include <IE.au3>
; Return Value(s):
; none
; Author(s): lod3n, Ed_Maximized
;
;===============================================================================
Func _GUICtrlResumeGIF($Control)
$Control.document.body.background = $Control.document.body.background ;resume
EndFunc
;===============================================================================
;
; Function Name: _GetGifPixWidth_Height()
; Description: return the size of a GIF image in pixels
; Parameter(s): $s_gif [required] path and filename of the animated GIF
;
; Requirement(s): #include <IE.au3>
; Return Value(s):
; $pwidth = width of the GIF in pixels
; $pheight = height of the GIF in pixels
; Author(s): gafrost
;
;===============================================================================
Func _GetGifPixWidth_Height($s_gif, ByRef $pwidth, ByRef $pheight)
If FileGetSize($s_gif) > 9 Then
Local $sizes = FileRead($s_gif, 10)
ConsoleWrite("Gif version: " & StringMid($sizes, 1, 6) & @LF)
$pwidth = Asc(StringMid($sizes, 8, 1)) * 256 + Asc(StringMid($sizes, 7, 1))
$pheight = Asc(StringMid($sizes, 10, 1)) * 256 + Asc(StringMid($sizes, 9, 1))
ConsoleWrite($pwidth & " x " & $pheight & @LF)
EndIf
EndFunc ;==>_GetGifPixWidth_Height
Sie gehört: Xeno
Glaube in einem anderem Forum.
|
|
|
 |
Similar Threads
|
Verkaufe Middleman wallpaper.gif datei + psd datei suche egold
07/29/2012 - elite*gold Trading - 16 Replies
GFX shop.
Es werden die gif + psd datein verkauft , ihr sagt preis wenn er passt schikt ihr eg und ich DL link
#1
http://i.epvpimg.com/afzcd.gif
#2Neu
|
Audio-Datei mit AutoIT aufrufen/abspielen?
10/20/2011 - AutoIt - 6 Replies
Hallo,
ich möchte gerne, dass Autoit immer dann einen Song abspielt (endlos), wenn eine Aktion erfolgreich war (blödes Beispiel, aber: z.b.: wenn eine Emails abgerufen wurden und es neue nachrichten gibt). Ich denke das ist verständlich. Die Datei ist im Format mp3 kann aber auch wenns nötig ist in ein anderes Format umgewandelt werden.
Ich hoffe ihr könnt mir helfen, da GOOGLE leider keine hilfe war.
Danke!
|
Fehlermeldung, Datei existiert nicht zum packen der Season1, Datei ist aber da ...
08/10/2011 - Metin2 Private Server - 4 Replies
Hallo,
wie oben schon beschrieben hab ich die Season1 entpackt um eine neue Map
einzufügen, doch das Problem ist, wenn ich die Season1 wieder einpacken will,
dann steht in der CMD Box ein Fehler:
Bild im Anhang!
Doch die Datei exisitert, ich war in den Ordner rein, und die Datei war auch da.
|
All times are GMT +1. The time now is 21:57.
|
|