Sign in to follow this  
Followers 0
theguy0000

can't create object...?

8 posts in this topic

#include-once
Global $oPlayerApp = ObjCreate ("MediaPlayer.PlayerApplication")
If @error Then
    ConsoleWrite ("failed."&@LF)
Else
    ConsoleWrite ("success."&@LF)
EndIf

It always gives me failed.

here is the documentation for PlayerApplication: http://msdn.microsoft.com/library/default....ationobject.asp

I have a feeling that I am putting the wrong thing before the dot, but I'm not sure what it should be...


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

#include <FILE-YOU-WANNA-INCLUDE.au3>

Edited by aceloc

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Share this post


Link to post
Share on other sites

@aceloc: what the heck?

@gafrost: uh, what do i do with that? where can i get it?


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

what are you tryin to include?

#include-once


[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Share this post


Link to post
Share on other sites

@aceloc: what the heck?

@gafrost: uh, what do i do with that? where can i get it?

You have Media Player installed?

#include-once
Global $oPlayerApp = ObjCreate ("WMPlayer.OCX")
If @error Then
    ConsoleWrite ("failed."&@LF)
Else
    ConsoleWrite ("success."&@LF)
EndIf

Look in scripts and scraps, it's been done more than once.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

@aceloc: it means that if the file is included in other files, it can't be included more than once...gah i can't explain it, just look it up in the help file

@gafrost: ohhh lol, thanks a bunch.


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

@aceloc: it means that if the file is included in other files, it can't be included more than once...gah i can't explain it, just look it up in the help file

@gafrost: ohhh lol, thanks a bunch.

ah thanks.

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

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