Jump to content

can't create object...?


theguy0000
 Share

Recommended Posts

#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

Link to comment
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.

 

Link to comment
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

Link to comment
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]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...