unknown12 Posted September 5, 2006 Share Posted September 5, 2006 Hello, I already know how to use flash with ObjCreate(), but how can I use a java applet? eg for flash: $o = ObjCreate ("ShockwaveFlash.ShockwaveFlash.1") $obj = GUICtrlCreateObj ($o, 16, 26, 640, 480) With $o .bgcolor = "#000000" .Movie = 'http://192.168.0.3:8080/flash.swf' .ScaleMode = "0" .wmode = "Opaque" EndWith OR.. is there anyway to add width and height parameters into the With...Endwith? Cheers. Link to comment Share on other sites More sharing options...
lod3n Posted September 5, 2006 Share Posted September 5, 2006 It does not scale to fit the size you've set in GUICtrlCreateObj ? [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
lod3n Posted September 5, 2006 Share Posted September 5, 2006 Oops, sorry. JAVA. Could you possibly create an IE instance, and use HTML code to display the java applet? [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
unknown12 Posted September 5, 2006 Author Share Posted September 5, 2006 I was thinking of doing that, but i'd rather have it as an object. Btw, the flash doesn't scale (i assume its an error with the code in the flash file - not my flash file) and it only seems to be the right size if the width/height is forced. Link to comment Share on other sites More sharing options...
lod3n Posted September 5, 2006 Share Posted September 5, 2006 You might be able to do it with GetObj, take a look at this:http://www.aspemporium.com/tutorials.aspx?tid=10I might be way off, but this sounds promising... [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
ramadash Posted September 5, 2006 Share Posted September 5, 2006 well your java objects need several things (and probably other thigns since i aint really advanced with java/com) you java class needs to implement a COm type library and porlly some com structures or something like that. you need to compile a .dll and register it to your system OLE/COM. ok im sorry i cant tell you much more but you should search google on how to implement COM within a java script. Link to comment Share on other sites More sharing options...
unknown12 Posted September 5, 2006 Author Share Posted September 5, 2006 (edited) i'll take a look at that, but is there anyway to force height+width? EDIT: java doesnt seem such a good idea now. What about the flash? Edited September 5, 2006 by unknown12 Link to comment Share on other sites More sharing options...
ramadash Posted September 5, 2006 Share Posted September 5, 2006 well ive read in an article that java wasnt designed for COM compatibility but that it already have all the things you need to make it COM object, that it was even a perfect match.. but it didnt explained how to do it unfortunately lol. For flash I never used it so I really have no clue. And you are trying to resize a window? Well I think some window have NoResize (not sure if you can get behin that) but autoit have WinResize or something like that in window functions, and you can also try a call to the win32 api using dllcall and information found on www.msdn.com /search win32 api reference. Link to comment Share on other sites More sharing options...
unknown12 Posted September 5, 2006 Author Share Posted September 5, 2006 Nope, trying to force the actaull flash file to resize. Link to comment Share on other sites More sharing options...
ramadash Posted September 5, 2006 Share Posted September 5, 2006 by flash you mean the adobe flash thing used in webspaces? if its something else sorry im kinda comfused. Link to comment Share on other sites More sharing options...
lod3n Posted September 5, 2006 Share Posted September 5, 2006 I tried your code on a flash file I had and it resized to whatever I set the GUICtrlCreateObj to. Anyways, try .scale = "exactFit" [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
unknown12 Posted September 5, 2006 Author Share Posted September 5, 2006 already tried, not working. I think its something todo with the flash file, but with forced width it works in a browser. Link to comment Share on other sites More sharing options...
lod3n Posted September 5, 2006 Share Posted September 5, 2006 Well then, again, you could use an embedded IE object. And I am sure you could still have control of it as an object using _IETagNameGetCollection, selecting the first <object> or <embed> that you use for it. [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
unknown12 Posted September 5, 2006 Author Share Posted September 5, 2006 Any examples? I've gtg now so cant look myself, Link to comment Share on other sites More sharing options...
lod3n Posted September 5, 2006 Share Posted September 5, 2006 What is it that you're trying to do? Make a swf viewer? I think that's already been done on this forum. [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted September 5, 2006 Share Posted September 5, 2006 plays flashhttp://www.autoitscript.com/forum/index.ph...p;hl=swf+player Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now