Jump to content

Script after compileing is not running


Recommended Posts

Hi @ all!

(First, sorry for my bad english)

I write this script to Check the Spool Service.

It's running fine as Script. But after compileing the script dont run.

Whats the problem? ;)

$i = 1

$oShell=ObjCreate("shell.application")

Do
    if NOT $oShell.IsServiceRunning("Spooler") then  
        $oShell.ServiceStart("Spooler",false)
        TrayTip("Windows Dienst Checker", "Der Spool Dienst wurde neu gestartet.", 5, 1)
        EndIf
    Sleep(10000)
    Until $i = 10

Error:

Line 0 (File "Spool-Check.exe"):

$oShell=ObjCreate("shell.application")

$oShell=^ ERROR

Error: Unknown function name.

Edited by Essbaumer

CURalf

Link to comment
Share on other sites

you have compiled it with autoit

you have to betacompile it, because this function doesn't exist in autoit

I know I'll feel stupid after I get the answer...But what do you mean by "betacompile"?

Edited by stev379
Link to comment
Share on other sites

I know I'll feel stupid after I get the answer...But what do you mean by "betacompile"?

By Beta compile he means compile it with the compiler found in "program/AutoIT/Beta"

EDIT

This does not belong in this forum, it belongs in the Support forum

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

By Beta compile he means compile it with the compiler found in "program/AutoIT/Beta"

EDIT

This does not belong in this forum, it belongs in the Support forum

Cool Thanks! But I don't have "Beta" in my AutoIT folder under Programs. My currently installed version is from the autoit-v3-setup.exe download. Is there a Beta version somewhere I've missed?;)

EDIT:

I forgot to mention. I get that same error in testing. I haven't compiled it yet.

$objApp = ObjCreate("Shell.Application")

$objApp = ^ ERROR

EDIT

This does not belong in this forum, it belongs in the Support forum

I wasn't the original poster, but I'll keep this in mind for future new posts.

Thanks!! :P

Edited by stev379
Link to comment
Share on other sites

Cool Thanks! But I don't have "Beta" in my AutoIT folder under Programs. My currently installed version is from the autoit-v3-setup.exe download. Is there a Beta version somewhere I've missed?;)

EDIT:

I forgot to mention. I get that same error in testing. I haven't compiled it yet.

$objApp = ObjCreate("Shell.Application")

$objApp = ^ ERROR

EDIT

I wasn't the original poster, but I'll keep this in mind for future new posts.

Thanks!! :P

You will find the Beta versions Here


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

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