| Author |
Message |
Topic: Ahk2exe does not notice syntax errors |
Andrej
Replies: 3
Views: 633
|
Forum: Bug Reports Posted: Fri Sep 10, 2010 3:23 pm Subject: Ahk2exe does not notice syntax errors |
| I worked the problem around by running the script with Autohotkey.exe before compiling it. If there are any syntax errors, they would be reported by Autohotkey.exe. Below is a fragment of my batch fil ... |
Topic: Ahk2exe does not notice syntax errors |
Andrej
Replies: 3
Views: 633
|
Forum: Bug Reports Posted: Fri Sep 10, 2010 3:01 pm Subject: Ahk2exe does not notice syntax errors |
| I see. Thank you for your reply. |
Topic: Ahk2exe does not notice syntax errors |
Andrej
Replies: 3
Views: 633
|
Forum: Bug Reports Posted: Fri Sep 10, 2010 2:12 pm Subject: Ahk2exe does not notice syntax errors |
| Ahk2exe does not notice syntax errors; when it is run from command line and the script contains #ErrorStdOut. Instead of reporting a syntax error, the compiler produces a corrupted EXE file and sends ... |
Topic: "local" implies assume-global mode |
Andrej
Replies: 1
Views: 194
|
Forum: Ask for Help Posted: Sat Jun 12, 2010 8:24 am Subject: "local" implies assume-global mode |
If I declare one of variables in a function local, all other variables in the function become global. Is is confusing and could lead to errors.
my_func()
{
local my_local1 : ... |
Topic: A warning when a local var has the same name as a global one |
Andrej
Replies: 21
Views: 1210
|
Forum: Wish List Posted: Fri May 28, 2010 2:51 pm Subject: A warning when a local var has the same name as a global one |
Thank you all for your replies.
The discussion went away from my original problem; because I was not clear enough.
I did not want to add a warning to avoid a bad practic. I wanted to prevent errors ... |
Topic: A warning when a local var has the same name as a global one |
Andrej
Replies: 21
Views: 1210
|
Forum: Wish List Posted: Thu May 27, 2010 12:03 pm Subject: A warning when a local var has the same name as a global one |
this code index10:="Hi there" ; global
func(10)
MsgBox % Index10 ; global says hi there
func(loopit)
{
loop % loopit
index%A_Index%:="Hi" ... |
Topic: A warning when a local var has the same name as a global one |
Andrej
Replies: 21
Views: 1210
|
Forum: Wish List Posted: Thu May 27, 2010 11:47 am Subject: A warning when a local var has the same name as a global one |
the code isn't wrong as such, it may unintentional consequences, but it isn't wrong.
Which code is not wrong?
The code I posted produces the following message box at run time.
-------------------- ... |
Topic: A warning when a local var has the same name as a global one |
Andrej
Replies: 21
Views: 1210
|
Forum: Wish List Posted: Thu May 27, 2010 11:05 am Subject: A warning when a local var has the same name as a global one |
the script doesn't know the value of loopit which could be the result of another function or user input so before running the script you will never be able to tell if it will create a local index10
... |
Topic: A warning when a local var has the same name as a global one |
Andrej
Replies: 21
Views: 1210
|
Forum: Wish List Posted: Thu May 27, 2010 7:19 am Subject: Re: A warning when a local var has the same name as a global |
Practically impossible, I guess.
The are hundreds of 'user library' functions available in the forum and many of them might get into 'standard library'.
For an average user, it would be very hard to ... |
Topic: A warning when a local var has the same name as a global one |
Andrej
Replies: 21
Views: 1210
|
Forum: Wish List Posted: Thu May 27, 2010 6:05 am Subject: A warning when a local var has the same name as a global one |
| Many, many times I had the same type of bugs while programming in ahk: I forgot to declare a global variable used in a function. Autohotkey would not warn me. It just would create a blank local variab ... |
Topic: "EXE corrupted" when run from a unicode path |
Andrej
Replies: 13
Views: 938
|
Forum: Bug Reports Posted: Wed May 19, 2010 5:39 pm Subject: "EXE corrupted" when run from a unicode path |
don't install why not distribute zipfile, just unpack and go. why not release sourcecode? with some effort sourcecode of any compiled script can be obtained so why bother compiling / not releasing ... |
Topic: "EXE corrupted" when run from a unicode path |
Andrej
Replies: 13
Views: 938
|
Forum: Bug Reports Posted: Wed May 19, 2010 4:39 pm Subject: "EXE corrupted" when run from a unicode path |
Thank you for you comment, PhiLho!
If I find a better solution to allow a limited user to install the application, I will be glad to avoid installing into "Documents and Settings" |
Topic: "EXE corrupted" when run from a unicode path |
Andrej
Replies: 13
Views: 938
|
Forum: Bug Reports Posted: Wed May 19, 2010 3:05 pm Subject: "EXE corrupted" when run from a unicode path |
I would like to explain why the problem is important for us.
Our application is installed in "C:\Documents and Settings\UserName\Application Data\" folder; because we want a limited user ... |
Topic: "EXE corrupted" when run from a unicode path |
Andrej
Replies: 13
Views: 938
|
Forum: Bug Reports Posted: Wed May 19, 2010 2:51 pm Subject: "EXE corrupted" when run from a unicode path |
Check that you're using the Unicode version.
I did.
Check that you replaced AutoHotkeySC.bin with the Unicode version.
I did.
Below are the steps for reproducing the "EXE corrupted" b ... |
Topic: "EXE corrupted" when run from a unicode path |
Andrej
Replies: 13
Views: 938
|
Forum: Bug Reports Posted: Wed May 19, 2010 2:35 pm Subject: "EXE corrupted" when run from a unicode path |
| I don't think it makes any difference whether you use a Unicode or ANSI build, as the (closed-source) library AutoHotkeySC uses to extract the script source from the executable's internal archive is o ... |
| |