Jump to content

Ronald Villaver

Members
  • Posts

    2
  • Joined

  • Last visited

Ronald Villaver's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi, Thanks for the info, it guided me to the right path. I also now have a Flash SWF component receiving the FSCommand events. #include <GUIConstants.au3> $swfObj = ObjCreate("ShockwaveFlash.ShockwaveFlash.1") $winObj = GUICreate("AutoIT Flash Player", 550, 300, -1, -1) $swfActiveX = GUICtrlCreateObj( $swfObj, 0, 0 , 550, 300) $swfObjEvents = ObjEvent($swfObj,"FSCommand") $swfObj.Movie = @WorkingDir & '/AutoItFlashPlayer.swf' $swfObj.ScaleMode = 3 $swfObj.bgcolor = "#FFFFFF" $swfObj.Loop = True $swfObj.wmode = "Opaque" Func FSCommand($type,$command,$arguments) If $type = "FSCommand" Then MsgBox(0,"AutoIT", $command & ":" & $arguments) If $command = "autoit" Then $swfObj.SetVariable("AutoItReply", "[" & @UserName & "] " & $arguments) EndIf EndIf EndFunc GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd GUIDelete () Exit Attached is the prototype. Now I also get the same issue with the keypresses. My major concern is that I lost the {ENTER} key. In the flash is a TextArea, TextInput and a Button. You can click on the button to send whatever is in the TextInput to the "AutoIT Wrapper". I also placed a listener for the TextInput's {Enter} KeyPressed Event, my only problem is flash can't seem to receive the event anymore. For a straight forward test, the TextArea is a multi line TextArea where you can do paragraphs of text by pressing the {Enter} key, it also doesnt seem to work there. Is there a way to tell autoit to ignore all window-etc events and just let the flash component have the priority? If you can't access the file, I could email it to you, if you'd want to see it. AutoItFlashPlayer.zip
  2. Hi, is it possible to receive the FSCommand Events of the Shockwaveplayer? In VB it works this way... In C# its implemented this way... I can see that there is a way to redirect the events to UDFs but I could'nt figure out where to start. Hope you could help, this would be a great addition to AutoIT as it would be a very very powerful FlashPlayer if someone could find a solution.
×
×
  • Create New...