Jump to content

Recommended Posts

Posted (edited)

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

Posted (edited)

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
Posted (edited)

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

Posted (edited)

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
Posted

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

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
×
×
  • Create New...