trancexx 1,013 Posted March 16, 2011 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 objectExpand it to IUnknown levelCreate Stream object on (out of) SWF data Ask Shockwave object for PersistStreamInit objectCall InitNew method of PersistStreamInit object to initialize itUse Load method to load Stream of SWF dataCreate Shockwave object control in Autoit GUIInteresting 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.au3Everybody loves Duck Sauce, is this amazing or is this amazing? 1 wakillon reacted to this ♡♡♡ . eMyvnE Share this post Link to post Share on other sites
kaotkbliss 146 Posted March 16, 2011 I wish I was as smart as you 010101000110100001101001011100110010000001101001011100110010000001101101011110010010000001110011011010010110011100100001My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueekWe're gonna need another Timmy! Share this post Link to post Share on other sites
JohnOne 1,603 Posted March 16, 2011 Works a treat, and looks rather swanky too. I know its doing something special, and whatever it is, its great. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
FireFox 260 Posted March 16, 2011 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_UDFMy Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme makerMy Examples : Capture tool | IP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewerMy 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 1,013 Posted March 16, 2011 What do you mean "the top flash movie"? ♡♡♡ . eMyvnE Share this post Link to post Share on other sites
JohnOne 1,603 Posted March 16, 2011 I think FireFox means the autoitobject plug in the gui. is that ran from memery also? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
trancexx 1,013 Posted March 16, 2011 (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 March 16, 2011 by trancexx ♡♡♡ . eMyvnE Share this post Link to post Share on other sites
wakillon 403 Posted March 17, 2011 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.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites
ValeryVal 8 Posted March 17, 2011 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 projectThe OCX (it's free!) with dependencies can be download from hereIs 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
FireFox 260 Posted March 17, 2011 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.1Br, 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_UDFMy Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme makerMy Examples : Capture tool | IP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewerMy 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 1,013 Posted March 17, 2011 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
FireFox 260 Posted March 17, 2011 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_UDFMy Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme makerMy Examples : Capture tool | IP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewerMy 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 1,013 Posted March 17, 2011 (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 March 17, 2011 by trancexx ♡♡♡ . eMyvnE Share this post Link to post Share on other sites
FireFox 260 Posted March 17, 2011 I don't know. Nothing. Put Flash10m.ocx in your script's folder and comment out lines with ObjCreate("ShockwaveFlash.ShockwaveFlash")edit: convenient temporary linkIt 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_UDFMy Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme makerMy Examples : Capture tool | IP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewerMy 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
FireFox 260 Posted March 17, 2011 @trancexxCan 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_UDFMy Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme makerMy Examples : Capture tool | IP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewerMy 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 1,013 Posted March 17, 2011 (edited) @trancexxCan 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 March 17, 2011 by trancexx ♡♡♡ . eMyvnE Share this post Link to post Share on other sites
Andreik 66 Posted March 17, 2011 From where can I get Flash10m.ocx? When the words fail... music speaks Share this post Link to post Share on other sites
trancexx 1,013 Posted March 17, 2011 From the convenient temporary link. ♡♡♡ . eMyvnE Share this post Link to post Share on other sites
Andreik 66 Posted March 17, 2011 (edited) Wow this is pretty nice work. I like it. Edited March 18, 2011 by Andreik When the words fail... music speaks Share this post Link to post Share on other sites
Ascend4nt 131 Posted March 18, 2011 Excellent job My contributions:Performance Counters in Windows - Measure CPU, Disk, Network etc Performance | Network Interface Info, Statistics, and Traffic | CPU Multi-Processor Usage w/o Performance Counters | Disk and Device Read/Write Statistics | Atom Table Functions | Process, Thread, & DLL Functions UDFs | Process CPU Usage Trackers | PE File Overlay Extraction | A3X Script Extract | File + Process Imports/Exports Information | Windows Desktop Dimmer Shade | Spotlight + Focus GUI - Highlight and Dim for Eyestrain Relief | CrossHairs (FullScreen) | Rubber-Band Boxes using GUI's (_GUIBox) | GUI Fun! | IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) | Magnifier (Vista+) Functions UDF | _DLLStructDisplay (Debug!) | _EnumChildWindows (controls etc) | _FileFindEx | _ClipGetHTML | _ClipPutHTML + ClipPutHyperlink | _FileGetShortcutEx | _FilePropertiesDialog | I/O Port Functions | File(s) Drag & Drop | _RunWithReducedPrivileges | _ShellExecuteWithReducedPrivileges | _WinAPI_GetSystemInfo | dotNETGetVersions | Drive(s) Power Status | _WinGetDesktopHandle | _StringParseParameters | Screensaver, Sleep, Desktop Lock Disable | Full-Screen Crash RecoveryWrappers/Modifications of others' contributions:_DOSWildcardsToPCRegEx (original code: RobSaunder's) | WinGetAltTabWinList (original: Authenticity)UDF's added support/programming to:_ExplorerWinGetSelectedItems | MIDIEx UDF (original code: eynstyne)(All personal code/wrappers centrally located at Ascend4nt's AutoIT Code) Share this post Link to post Share on other sites