Jump to content

My continuing brain freeze...


Recommended Posts

Hello again...

Here's a simple script:

$obj=ObjCreate("Shell.Application")
$obj.Open ("C:\Program Files\")

When I run the script, I get this error:

$obj.Open("c:\program files\")

$obj^ERROR

Error: Variable must be of type "Object".

I have no clue why it's telling me this. I'm running XP and the AutoIt beta. Please put a heat gun to my brain by telling me what I've done wrong.

Thanks,

David

--As a matter of fact, I went to the AutoIt3 help documents under ObjCreate and tried running the example file and received the same error.

Edited by confutatis
Link to comment
Share on other sites

Hello again...

Here's a simple script:

$obj=ObjCreate("Shell.Application")
$obj.Open ("C:\Program Files\")

When I run the script, I get this error:

$obj.Open("c:\program files\")

$obj^ERROR

Error: Variable must be of type "Object".

I have no clue why it's telling me this. I'm running XP and the AutoIt beta. Please put a heat gun to my brain by telling me what I've done wrong.

Thanks,

David

--As a matter of fact, I went to the AutoIt3 help documents under ObjCreate and tried running the example file and received the same error.

Works for me, are you sure you are using Beta version to run it.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Yeah, I'm using the beta version...Very odd.

Put the following code at the top of script your just to check

$ver=@AutoItVersion
MsgBox(0, "AutoIT Version", $ver)
Edited by BigDod


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Comes back 3.1.1.75

Download the latest Beta which is 3.1.1.83


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Upgraded....still no go...Very frustrating.

Did you type the code in your post or "copy and Paste". The reason for asking is incase there is a typing error in the original script.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Seems like I create any object but the Shell.Application object...UGH!

Sorry I have run out of ideas


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Just bringing this back up front...wondering if anyone else has any ideas.

I've been searching the Web for a solution and I have found some articles related to the shell.application object and XP SP2 security. Has anyone else read about this? Most of the articles mention something about Active Desktop needing to be enabled (but not necessarily running) in order for a programmer to use the shell.application object. Also, there's mention that NT must also have Active Desktop enabled to be able to use this object.

Any thoughts, comments, solutions?

David

Link to comment
Share on other sites

i run standard XP home SP 2 and never had any problems regarding shell.application.

Thanks for the post...I just connected to my XP home computer and ran the shell.application script--and it worked. Apparently, this has something to do with XP Pro security.

David

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...