Jump to content
Sign in to follow this  
andyvl

Run script vs run exe

Recommended Posts

andyvl

Have a question.

When I run my script (via au3 file) my script works without any errors.

When I run my script via the builded exe I got

line0 (c:\documents.....)

$mainwindow = guicreate("window", 310, 500, $ds_setforeground, $ws_ex_dlgmodalframe)

$mainwindow = guicreate("window", 310, 500, ^ErrOR

Error: variable used without being declared

what's wrong? Why does the au3 file work and the exe not and how can I solve this?

Share this post


Link to post
Share on other sites
jpm

Perhaps I would have understand the other way around when referencing the include files.

can you post a more complete script so we can help you.

The building of the exe incorporate inside the exe the include file so you should not have any problem.

:)

Share this post


Link to post
Share on other sites
andyvl

Here is the au3 file.

I have put the line processcheck($capspath) as comment now.

cause it uses a whitelist of processes (the rest is killed)

blackandwhite.au3

Share this post


Link to post
Share on other sites
jpm

Here is the au3 file.

I have put the line processcheck($capspath) as comment now.

cause it uses a whitelist of processes (the rest is killed)

Thanks :)

where do I find?

#include <ServiceControl.au3>

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.