Include causes problem

Recommended Posts

Hi

I have problem when I Add #include "Download.au3" at beginning of file "install.au3" I will get errors, But if i comment it out then "install.au3" runs without any errors, can anyone say me whats wrong my script?

Here you see what happens if i have #include "Download.au3" without commented out.

Z:\My Documents\install2\Lib.au3(8,17) : WARNING: \$title: possibly used before declaration.

WinMove(\$title,

~~~~~~~~~~~~~~^

Z:\My Documents\install2\Lib.au3(11,40) : WARNING: \$output: possibly used before declaration.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

Z:\My Documents\install2\Lng.au3(14,27) : WARNING: \$MenuItem1: possibly used before declaration.

~~~~~~~~~~~~~~~~~~~~~~~~~^

Z:\My Documents\install2\Lng.au3(15,28) : WARNING: \$MenuItem11: possibly used before declaration.

~~~~~~~~~~~~~~~~~~~~~~~~~~^

Z:\My Documents\install2\Lng.au3(16,28) : WARNING: \$MenuItem12: possibly used before declaration.

~~~~~~~~~~~~~~~~~~~~~~~~~~^

Z:\My Documents\install2\Lng.au3(17,28) : WARNING: \$MenuItem13: possibly used before declaration.

~~~~~~~~~~~~~~~~~~~~~~~~~~^

Z:\My Documents\install2\Lng.au3(18,28) : WARNING: \$MenuItem14: possibly used before declaration.

~~~~~~~~~~~~~~~~~~~~~~~~~~^

Z:\My Documents\install2\Lng.au3(19,27) : WARNING: \$MenuItem2: possibly used before declaration.

~~~~~~~~~~~~~~~~~~~~~~~~~^

Z:\My Documents\install2\Lng.au3(20,28) : WARNING: \$MenuItem21: possibly used before declaration.

~~~~~~~~~~~~~~~~~~~~~~~~~~^

Z:\My Documents\install2\Lng.au3(21,28) : WARNING: \$MenuItem22: possibly used before declaration.

~~~~~~~~~~~~~~~~~~~~~~~~~~^

#include <"file.au3>

~~~~~~~~~^

Z:\My Documents\install2\install.au3 - 1 error(s), 10 warning(s)

install2.zip

Share on other sites

Hi

I have problem when I Add #include "Download.au3" at beginning of file "install.au3" I will get errors, But if i comment it out then "install.au3" runs without any errors, can anyone say me whats wrong my script?

Here you see what happens if i have #include "Download.au3" without commented out.

First step, I would start by fixing the error

#include <"file.au3>

~~~~~~~~~^

Z:\My Documents\install2\install.au3 - 1 error(s), 10 warning(s)

Change #Include <"file.au3>

to

#Include <file.au3>

Then see what happens.

Share on other sites

Ignore warnings, they are just WARNINGS. Not errors.

Share on other sites

Just because they are warnings does not mean they should all be ignored. If you are warned not to step into traffic, would it be good to ignore that? The choice is yours of course but don't start crying when you get hit by a car.

Create an account

Register a new account