|
You last visited: Today at 15:00
Advertisement
Shockwaveflash in Autoit
Discussion on Shockwaveflash in Autoit within the AutoIt forum part of the Coders Den category.
02/04/2010, 14:41
|
#1
|
elite*gold: 0
Join Date: Dec 2009
Posts: 1,622
Received Thanks: 2,070
|
Shockwaveflash in Autoit
Hallo,
Ich bin dabei autoit zu lernen und kenne simple sachen wie screens erstellen etc.
Meine Frage.
Wie Starte ich eine Shockwaveflash datei in einem fenster per Autoit script?
Es geht um dieses Spiel.
Ich habe gegoogelt und dieses beispiel gefunden.
Quote:
GUICreate("Title Goes Here", Width, Height)
GUISetState(@SW_SHOW)
$Flash = ObjCreate("ShockwaveFlash.ShockwaveFlash")
$FlashObj = GUICtrlCreateObj($Flash, 0, 0, FlashWidth, FlashHeight)
$Flash.Movie = "Url"
$Flash.Loop = True
|
Dementsprechend habe ich einen Script geschrieben der so aussieht.
Quote:
GUICreate("Test", 500, 500)
GUISetState(@SW_SHOW)
$Flash = ObjCreate("Bomberman.ShockwaveFlash")
$FlashObj = GUICtrlCreateObj($Flash, 0, 0, 500, 500)
$Flash.Movie = "http://www2.playit.ch/bomberman/bomberman.swf"
$Flash.Loop = True
|
Nun aber bekomme ich einen Fehler in Zeile 5
Quote:
Line 5 (File "C:\Users\Benutzer\Desktop\Test.au3"):
$Flash.Movie = "http://www2.playit.ch/bomberman/bomberman.swf"
§Flash^ ERROR
Error: Variable must be of type "Object".
|
Hoffe auf hilfe
|
|
|
02/04/2010, 14:43
|
#2
|
elite*gold: 0
Join Date: Apr 2009
Posts: 793
Received Thanks: 366
|
Es wird bei dir anscheinend kein Objekt erzeugt.
Quote:
ObjCreate
--------------------------------------------------------------------------------
Creates a reference to a COM object from the given classname.
ObjCreate ( "classname" [, "servername" [,"username", ["password"]]] )
Parameters
Classname | The class of the object in the following format:
"appname.objectype"
Servername | Optional name of a remote computer from which the
object must be obtained.
Username | Optional name of a usercode on the remote computer
You have to enter this in the format "computer\usercode" or
"domain\usercode".
Password | Optional password for the usercode on the remote computer.
|
|
|
|
02/04/2010, 14:49
|
#3
|
elite*gold: 0
Join Date: Dec 2009
Posts: 1,622
Received Thanks: 2,070
|
Hmm.
Tschuldige aber könntest du mir erklären was das bedeutet?
Ist es also nicht möglich es in einem fenster zu starten?
Weil ich möchte einen Trainer für dieses Spiel erstellen.
Ich kann z.B. Die Anzahl der Bomben finden und ändern, aber ich finde keine Pointer, dar Cheatengine mir als Pointer die Aktuelle adresse zeigt.
Ich dachte mir dass ich auf diese Weise Pointer finde.
EDIT: Ich habe es nun so Probiert.
Quote:
GUICreate("Test", 500, 500)
GUISetState(@SW_SHOW)
$Flash = ObjCreate("bomberman.Swf")
$FlashObj = GUICtrlCreateObj($Flash, 0, 0, 500, 500)
$Flash = "http://www2.playit.ch/bomberman/bomberman.swf"
$Flash.loop = true
|
Doch nun kommt der fehler bei $Flash.loop
Das es auch object sein muss.
Wenn ich es raus nehme schließt das fenster sofort wieder.
Ich komm nicht mehr weiter
|
|
|
02/04/2010, 15:11
|
#4
|
elite*gold: 0
Join Date: Apr 2009
Posts: 793
Received Thanks: 366
|
Code:
GUICreate("Test", 500, 500)
GUISetState(@SW_SHOW)
$Flash = ObjCreate(""ShockwaveFlash.ShockwaveFlash")
$FlashObj = GUICtrlCreateObj($Flash, 0, 0, 500, 500)
$Flash = "http://www2.playit.ch/bomberman/bomberman.swf"
$Flash.loop = true
Wenn du nicht verstehts, warum sich deine Anwendung sofort wieder schließt, dann lass es lieber gleich. (liegt an der fehlenden Schleife)
|
|
|
02/04/2010, 15:15
|
#5
|
elite*gold: 0
Join Date: Dec 2009
Posts: 1,622
Received Thanks: 2,070
|
Ich bin kein Profi und ich weiß das es an der schleife liegt.
Bloß weiß ich nicht wie ich sie angeben soll habe schon sämtliches probiert.
while 1 brachte meinen pc zum abstürzen.
$Flashobj.loop
$Flashmovie.loop
das ist mein problem.
Dass ich nicht weiß wie ich die schleife mache.
Und ich sagte ich bin neu also ich wills ja wissen, und frage deshalb nach hilfe.
|
|
|
02/04/2010, 15:22
|
#6
|
elite*gold: 0
Join Date: Apr 2009
Posts: 793
Received Thanks: 366
|
Code:
GUICreate("Test", 500, 500)
$Flash = ObjCreate(""ShockwaveFlash.ShockwaveFlash")
$FlashObj = GUICtrlCreateObj($Flash, 0, 0, 500, 500)
$Flash = "http://www2.playit.ch/bomberman/bomberman.swf"
$Flash.loop = true
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Wo liegt das problem?
|
|
|
02/04/2010, 15:26
|
#7
|
elite*gold: 0
Join Date: Dec 2009
Posts: 1,622
Received Thanks: 2,070
|
Hier
|
|
|
02/04/2010, 15:38
|
#8
|
elite*gold: 0
Join Date: Apr 2009
Posts: 793
Received Thanks: 366
|
Oh hier liegt dein Fehler:
Code:
$Flash = "http://www2.playit.ch/bomberman/bomberman.swf"
Code:
$Flash.Movie = "http://www2.playit.ch/bomberman/bomberman.swf"
Ist mir nicht aufgefallen
|
|
|
02/04/2010, 15:47
|
#9
|
elite*gold: 0
Join Date: Dec 2009
Posts: 1,622
Received Thanks: 2,070
|
Bei
Quote:
GUICreate("Test", 500, 500)
$Flash = ObjCreate("bomberman.swf")
$FlashObj = GUICtrlCreateObj($Flash, 0, 0, 500, 500)
$Flash.Movie = "http://www2.playit.ch/bomberman/bomberman.swf"
$Flash.loop = true
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|
Kommt wieder der fehler bei $Flash.Movie mit diesem object
Bei
Quote:
GUICreate("Test", 500, 500)
$Flash = ObjCreate("bomberman.swf")
$FlashObj = GUICtrlCreateObj($Flash, 0, 0, 500, 500)
$FlashMovie = "http://www2.playit.ch/bomberman/bomberman.swf"
$Flash.loop = true
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|
Kommt wieder der Fehler bei True
Kannst dir mal selber ein bild davon machen
Die Url der swf müsste sein aber kannst es ja nachgucken
Wäre dir sehr dankbar wenn du mir helfen könntest
|
|
|
02/04/2010, 15:52
|
#10
|
elite*gold: 0
Join Date: Apr 2009
Posts: 793
Received Thanks: 366
|
So ich habe mich jetzt doch durchgerungen, das ganze jetzt mal selber zu testen, da ich dir langsam irkenntwie nicht mehr glaube das du immer fehler bekommst.
Und siehe da:
Code:
#include <GUIConstantsEx.au3>
GUICreate("Test", 500, 500)
$Flash = ObjCreate("ShockwaveFlash.ShockwaveFlash")
$FlashObj = GUICtrlCreateObj($Flash, 0, 0, 500, 500)
$Flash.Movie = "http://www2.playit.ch/bomberman/bomberman.swf"
$Flash.loop = true
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
fuknitoniert 100%
|
|
|
02/04/2010, 15:55
|
#11
|
elite*gold: 0
Join Date: Dec 2009
Posts: 1,622
Received Thanks: 2,070
|
Vielen Dank!!
Muss halt gucken wieso man nicht online spielen kann aber vielen dank!
Damit klappts
Quote:
#include <GUIConstantsEx.au3>
GUICreate("Test", 500, 500)
$Flash = ObjCreate("ShockwaveFlash.ShockwaveFlash")
$FlashObj = GUICtrlCreateObj($Flash, 0, 0, 500, 500)
$Flash.Movie = "http://www2.playit.ch/bomberman/bomberman.swf?user=Player6646&hash=39b841362083ae7 0301fc8fc475d8f22&surl=www2.playit.ch&sport=6807&c surl=www2.playit.ch&csport=6800&sound=0&ext=%20(Bo mberman%20Classic)&extauth=e4032d479eed9532108dee1 0f6b10895&defaultRoom=Bomberman%20Classic"
$Flash.loop = true
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|
mann muss halt hier
Quote:
achten dass der player nicht vergeben ist
Kann Geclosed werden
|
|
|
02/04/2010, 19:29
|
#12
|
elite*gold: 0
Join Date: Nov 2008
Posts: 36
Received Thanks: 8
|
Hey ich danke euch so was ähnliches hab ich gesucht
|
|
|
02/08/2010, 20:02
|
#13
|
elite*gold: 0
Join Date: Dec 2009
Posts: 141
Received Thanks: 23
|
ich danke euch hab das auch gesucht kriegt beide jeweils 2 thanks
|
|
|
All times are GMT +2. The time now is 15:00.
|
|