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