Autoit bot declare problem

07/18/2009 16:28 blade3000#1
EDIT: It seems my pic is too small to read. So, The error says:

Line-1:

Error: Can not redeclare a constant
-----------------------------------------------------------------------------------------


Can someone tell me how to fix this problem on Autoit?

I changed everything around on Trin's bot script and created a .exe
but I keep getting this error

[Only registered and activated users can see links. Click Here To Register...]


I tried starting the bot before and after the game started with the same problem.

I downloaded Nomadmemory.au3 and iput the file into the include folder.

Then the computer told me, when i tred to run the program, that windowsconstant.au3 was giving me problems. So I did some research and found out that I might have to remove windowsconstant to make room for nomadmemory.

I took wondiwsconstant and put it on my desktop and then tried to run the program again and i got the erorr message in the picture.

Obviously my code changes were correct..but if you have a solution to this menial problem please tell me^^

It seems my pic is too small to read. So, The error says:

Line-1:

Error: Can not redeclare a constant
07/20/2009 15:22 Mc.Neal#2
post the au3 files so i can look whats the problem is
07/20/2009 16:07 blade3000#3
Here are the first few lines of the script.

#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Res_Comment=Autopot (Mayn Mem.)
#AutoIt3Wrapper_Res_Description=Autopot (Mayn Mem.)
#AutoIt3Wrapper_Res_Fileversion=1.0.0.0.0
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <Nomadmemory.au3>
#include <Array.au3>
#include <memory.au3>
WinWaitActive("TwelveSky2")

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
07/20/2009 16:57 Mc.Neal#4
this dont help need the complett au3
07/20/2009 18:53 blade3000#5
[Only registered and activated users can see links. Click Here To Register...]
07/20/2009 19:40 strikeraid#6
something about "redeclare" sounds like it is telling you that you made something equal something, but then made it equal to another thing as well.
might look like a=b then later in your script a=c. and since we're talking about constants, i think they can only have 1 value instead of 2.
07/20/2009 21:00 marcoyang#7
Just try to help...
I think you may not remove any #include at your script.
"windowsconstant.au3" must be place at the script.. cause GUI function need constants that inside "windowsconstant.au3" file. Maybe the error you got because autoit can not redeclare the same constant name.. please check the whole script.. maybe at the script had declare a constant that at "windowsconstant.au3" already declare.
You are not give the whole script so i can not help you to find the exact problem... but maybe this information will help you to find the problem.
Good Luck.