|
You last visited: Today at 10:55
Advertisement
Benötige kleine Hilfe..
Discussion on Benötige kleine Hilfe.. within the AutoIt forum part of the Coders Den category.
04/27/2010, 22:06
|
#1
|
elite*gold: 60
Join Date: Jun 2009
Posts: 717
Received Thanks: 431
|
Benötige kleine Hilfe..
Wie der Topic schon sagt, benötige ich eine kleine Hilfe bei meinem Script :
PHP Code:
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> InetGet("http://www.youtube.com/watch?v=pVXzgtsmlcQ&feature=related",@TempDir &"musik.wma") #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 341, 140, 192, 124) $Button1 = GUICtrlCreateButton("TEST", 40, 8, 265, 113, $WS_GROUP) GUICtrlSetFont(-1, 80, 800, 2, "Tempus Sans ITC") GUISetState(@SW_SHOW) $Sound1 = SoundPlay(@TempDir & "\musik.wma") #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
Es soll die gewünschte datei von youtube abspielen als Hintergrund Musik ...hab ka,wie ich das machen soll..
Bitte um schnelle Hilfe
Danke FrEakY.
|
|
|
04/27/2010, 22:08
|
#2
|
elite*gold: 179
Join Date: Oct 2009
Posts: 7,853
Received Thanks: 8,558
|
Quote:
InetGet("http://www.youtube.com/watch?v=pVXzgtsmlcQ&feature=related",@TempDir &"musik.wma")
|
wie soll denn das gehen?
Nach deinem Wunsch soll erm (wie VDownloader) ein Youtube Video rippen und es konverten...wird nicht funktionieren...^^
Mach die Datei erstmal zu einer .wma und lad sie iwo hoch wie file-upload.net...
|
|
|
04/27/2010, 22:23
|
#3
|
elite*gold: 60
Join Date: Jun 2009
Posts: 717
Received Thanks: 431
|
Also so...
PHP Code:
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <IE.au3>
InetGet("http://ul.to/xzjpfs",".\" &"ORiON__GhidaPoP_Keygen_Song_HQ.mp3") #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 341, 140, 192, 124) $Button1 = GUICtrlCreateButton("TEST", 40, 8, 265, 113, $WS_GROUP) GUICtrlSetFont(-1, 80, 800, 2, "Tempus Sans ITC") GUISetState(@SW_SHOW) $Sound1 = SoundPlay("ORiON__GhidaPoP_Keygen_Song_HQ.mp3") #EndRegion ### END Koda GUI section ###
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit
EndSwitch WEnd
|
|
|
04/27/2010, 22:25
|
#4
|
elite*gold: 179
Join Date: Oct 2009
Posts: 7,853
Received Thanks: 8,558
|
Soweit in ordnung, aber AutoIT kann keine Mp3 dateien abspielen soweit ich weis...versuchs mit .wma
|
|
|
04/27/2010, 22:38
|
#5
|
elite*gold: 60
Join Date: Jun 2009
Posts: 717
Received Thanks: 431
|
So siehts jetzt aus...
PHP Code:
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <IE.au3>
InetGet("http://ul.to/4lznw5",".\" &"track.wma") #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 341, 140, 192, 124) $Button1 = GUICtrlCreateButton("TEST", 40, 8, 265, 113, $WS_GROUP) GUICtrlSetFont(-1, 80, 800, 2, "Tempus Sans ITC") GUISetState(@SW_SHOW) $Sound1 = SoundPlay("track.wma") #EndRegion ### END Koda GUI section ###
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit
EndSwitch WEnd
|
|
|
04/28/2010, 15:14
|
#6
|
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,147
|
Als Notlösung wäre das vielleicht auch ganz interessant:
PHP Code:
#include <IE.au3> HotKeySet("{ESC}", "_exit") $Sleep = 1 * 60 * 1000 $Sound = _IECreate("http://www.youtube.com/watch?v=pVXzgtsmlcQ", 0, 0, 0, 0) Sleep($Sleep) _IEQuit($Sound) Func _exit() _IEQuit($Sound) Exit EndFunc
|
|
|
04/30/2010, 19:28
|
#7
|
elite*gold: 237
Join Date: Sep 2008
Posts: 4,476
Received Thanks: 4,587
|
Ul.to wird nicht funktionieren, weil es kein Direktdownload ist
probier es lieber mit FileInstall.
PHP Code:
#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <Sound.au3> ; FileInstall("source", "dest") #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 341, 8+113+16+113+8, 192, 124) $Button1 = GUICtrlCreateButton("TEST", 40, 8, 265, 113, $WS_GROUP) GUICtrlSetFont(-1, 80, 800, 2, "Tempus Sans ITC") $Button2 = GUICtrlCreateButton("TEST", 40, 8+113+16, 265, 113, $WS_GROUP) GUICtrlSetFont(-1, 80, 800, 2, "Tempus Sans ITC") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### Global $hSound = 0 While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 SoundPlay("c:\Windows\Media\flourish.mid", 0) Case $Button2 $hSound = _SoundOpen ( "c:\Windows\Media\flourish.mid" ) $hSound = _SoundPlay ($hSound, 0) EndSwitch If _SoundPos($hSound, 2) >= _SoundLength($hSound, 2) Then _SoundClose ($hSound) WEnd
Hier mal ein Beispiel mit c:\Windows\Media\flourish.mid, ob es die bei Windows XP gibt weiß ich nicht, habe 7. Du kannst den Namen ja dann ändern. Bei FileInstall musst du dann natürlich die Parameter ändern.
MfG
FichteFoll
|
|
|
Similar Threads
|
Benötige HILFE!!!
04/23/2010 - WoW Private Server - 4 Replies
Hallo,
ich möchte in dem Server einen Fun Spell lehrer einfügen und nun ist das Problem wenn ich einen Lherer nutze und alle Spells entferne und die neuen einfüge das man sie nicht sieht wie kann ich das ändern.
MFG
Onkel
|
Benötige Hilfe
08/14/2009 - Metin2 Private Server - 18 Replies
Könnte mir jmd das erste Zeichen dieses Captchas lösen??
würde mich sehr freuen mfg Strew
http://imgbox.de/users/public/images/c16951h252.j pg
|
Benötige mal hilfe...
12/18/2005 - General Coding - 4 Replies
so als erstes mein vorwort!
das mit dem hack da,da hat der andere den keylogger rein!
prob is. der wohn da wo die kangeroos rumhüpfen -.-
egal back2topic
ich weiss wie man bei kalonline geld hacken kann...
ich benötige aber hilfe von einem der sich mit packet trainern auskennt!
bitte pm an mich wer mir helfen kann/will
|
All times are GMT +2. The time now is 10:55.
|
|