Sign in to follow this  
Followers 0
unknown12

Java Object

16 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by unknown12

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Nope, trying to force the actaull flash file to resize.

Share this post


Link to post
Share on other sites

by flash you mean the adobe flash thing used in webspaces? if its something else sorry im kinda comfused.

Share this post


Link to post
Share on other sites

already tried, not working. I think its something todo with the flash file, but with forced width it works in a browser.

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

Any examples? I've gtg now so cant look myself,

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