Sign in to follow this  
Followers 0
trancexx

Flash-matic

55 posts in this topic

was asked the other day.

That first post hides a great idea an code. Unfortunately it's not AutoIt.

It's something that was never done in this language and almost impossible to be done before AutoItObject, you need AutoItObject. Remember that, you need AutoItObject. Hahaha... :)

After some googling two links crystallized, stackoverflow's and Delphy Flash thing. Read both to compare it to AutoIt's version. My conclusion is that AutoIt is as good as any language when it comes to object manipulation. Even easier to work with.

Shockwave object was used before in AutoIt scripts, there isn't much to say about that.

The main issue that was resolved here is how to load swf from memory, variable. If someone would inspect Flash typelib with some available tool (hey, :) , how interesting), he/she could see that IShockwaveFlash is IDispatch based interface with few available methods for loading files. But there is none to load either memory or stream. So, Idispatch can load only files from disk (yours or somebody elses), nothing more.

On the other hand linked articles suggest that IUnknown can load stream. This is where conventional AutoIt is lost and where AutoItObject takes control.

Described in steps, it would be:

  • Create Shockwave object
  • Expand it to IUnknown level
  • Create Stream object on (out of) SWF data
  • Ask Shockwave object for PersistStreamInit object
  • Call InitNew method of PersistStreamInit object to initialize it
  • Use Load method to load Stream of SWF data
  • Create Shockwave object control in Autoit GUI

Interesting thing is that you don't need to have Flash installed on system where this could be run. All your app would need in that case is Flash dll. Accessible Flash10m.ocx for example. Another interesting thing is that you can embed files in both scripts (as in this example) and executables as resources and run it from there.

I have added little input control, you'll figure out what's it for. By using AutoItObject you get Ward's base64 decoder for free. I used that to shrink the size of the embedded file.

Script (don't miss):

SWF.au3

Everybody loves Duck Sauce, is this amazing or is this amazing?

1 person likes this

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites



It does not work for the youtube player, I can only see the top flash movie.

I have the lastest autoitobject version and i'm on Windows XP 32bits.

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

What do you mean "the top flash movie"?


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Control below button and input?

FireFox, does it work if you remove upper control completely and comment out $oShockwaveFlash1 entirely? And what's the version of your AutoIt?

edit:

@JohnOne, both SWFs are from memory.

Edited by trancexx

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Video rights limits the use like the youtube's embedded urls, unlike an IE embedded player...

I'm on XP 32bits with AutoIt 3.3.6.1, and it works fine !

Nice work !


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

Your Flash-matic is good AutoIt solution of unpossible task.

BTW I've done more than three trials to resolve "MapWindow GIS ActiveX" problem and failed.

Read about it on Home page of project

The OCX (it's free!) with dependencies can be download from here

Is it really impossible to create MapWindowGIS-matic for AutoIt users?

Thanx

:)


The point of world view

Share this post


Link to post
Share on other sites

Control below button and input?

FireFox, does it work if you remove upper control completely and comment out $oShockwaveFlash1 entirely? And what's the version of your AutoIt?

Nop it does not. I have autoit v3.3.6.1

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

It's a flash thing then, nothing to do with AutoIt.

@ValeryVal, you need to be more specific.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

It's a flash thing then, nothing to do with AutoIt.

So what do i have to install?

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

So what do i have to install?

I don't know. Nothing. Put Flash10m.ocx in your script's folder and comment out lines with ObjCreate("ShockwaveFlash.ShockwaveFlash")

edit: convenient temporary link

Edited by trancexx

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

I don't know. Nothing. Put Flash10m.ocx in your script's folder and comment out lines with ObjCreate("ShockwaveFlash.ShockwaveFlash")

edit: convenient temporary link

It works !! thanks a lot :)

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

@trancexx

Can you give me the function to stop the video and the streaming?

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

@trancexx

Can you give me the function to stop the video and the streaming?

Br, FireFox.

This may sound strange but there is no such function, at least not the way you think.

Those are SWFs. Autoit is using ShockwaveFlash object to run SWF. SWF is what's streaming and depending on the developer of the SWF it can receive commands thru SetVariable method.

Probably someone with better understanding of the thematic could explain better. I'm very limited with knowledge in this area.

Edited by trancexx

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

From where can I get Flash10m.ocx?


When the words fail... music speaks

Share this post


Link to post
Share on other sites

From the convenient temporary link.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

#19 ·  Posted (edited)

Wow this is pretty nice work. I like it.

Edited by Andreik

When the words fail... music speaks

Share this post


Link to post
Share on other sites

Excellent job :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0