Sign in to follow this  
Followers 0
Essbaumer

Script after compileing is not running

8 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



Thanx!


CURalf

Share this post


Link to post
Share on other sites

#4 ·  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

Share this post


Link to post
Share on other sites

#5 ·  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


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

#6 ·  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

Share this post


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


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

You will find the Beta versions Here

Good deal!

;)

Thank you BigDod!!

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