Search found 4153 matches

by nnnik
02 Mar 2020, 14:02
Forum: Bug Reports
Topic: Bug? FileExist with "con." false positive, e.g. FileExist("C:\con.")
Replies: 12
Views: 3134

Re: Bug? FileExist with "con." false positive, e.g. FileExist("C:\con.")

guest3456 I dont think every AHK user has the ability to use github - if we do move to github we will block the majority of users from commenting. If we do want to comment on every help page an overhaul of the docs might be necessary. The comments could also be used as an additional resource when th...
by nnnik
01 Mar 2020, 02:22
Forum: Suggestions on documentation improvements
Topic: Document that FileExist() can give false positives for reserved file names
Replies: 8
Views: 2635

Re: Document that FileExist() can give false positives for reserved file names

This is a windows quirk and we usually dont describe those - because it can change.
However in this case we could make a little remark documenting the behavior.
by nnnik
01 Mar 2020, 02:14
Forum: Bug Reports
Topic: Bug? FileExist with "con." false positive, e.g. FileExist("C:\con.")
Replies: 12
Views: 3134

Re: Bug? FileExist with "con." false positive, e.g. FileExist("C:\con.")

We cant really use the forums to that granularity.
Its simply not made for that.
If we want to dicuss each page it might make way more sense to further develop the documentation software and allowing people to make comments on it.
by nnnik
01 Mar 2020, 02:07
Forum: Forum Issues
Topic: Slow forum
Replies: 88
Views: 15602

Re: Slow forum

Good job
by nnnik
26 Feb 2020, 03:35
Forum: Offtopic
Topic: « What's on your mind? »
Replies: 4477
Views: 1066077

Re: « What's on your mind? »

Image
by nnnik
24 Feb 2020, 06:30
Forum: Forum Issues
Topic: Slow forum
Replies: 88
Views: 15602

Re: Slow forum

Tank had issues with the database before - did you check that @joedf
by nnnik
23 Feb 2020, 03:30
Forum: AutoHotkey v2 Development
Topic: [ ??? ] FileOpen() Exception
Replies: 28
Views: 5521

Re: [ ??? ] FileOpen() Exception

Its not about speed its about finding bugs faster and more easily. Im pretty sure at this point that you just try to argue to change the language so that the code structure that you already made makes sense - Im sorry though, the code structure you made doesnt suit v2. Changing it back just so that ...
by nnnik
20 Feb 2020, 01:07
Forum: AutoHotkey v2 Development
Topic: [ ??? ] FileOpen() Exception
Replies: 28
Views: 5521

Re: [ ??? ] FileOpen() Exception

You are very much still free to use the DllCall Version.
I don't see the problem considering your definition of keep it stupid simple.
by nnnik
17 Feb 2020, 13:09
Forum: AutoHotkey v2 Development
Topic: [ ??? ] FileOpen() Exception
Replies: 28
Views: 5521

Re: [ ??? ] FileOpen() Exception

In fact to me it seems like AutoHotkey doesn't handle the INVALID_HANDLE case of GetStdHandle either.
by nnnik
17 Feb 2020, 13:08
Forum: AutoHotkey v2 Development
Topic: [ ??? ] FileOpen() Exception
Replies: 28
Views: 5521

Re: [ ??? ] FileOpen() Exception

Yeah but AutoHotkey returns an error as soon as it detects that the handle it receives is false. In the description to GetStdHandle: If the function fails, the return value is INVALID_HANDLE_VALUE. To get extended error information, call GetLastError. If an application does not have associated stand...
by nnnik
17 Feb 2020, 09:01
Forum: AutoHotkey v2 Development
Topic: [ ??? ] FileOpen() Exception
Replies: 28
Views: 5521

Re: [ ??? ] FileOpen() Exception

From what I understand nothing is connected to the stdout - you would have to call AlloCConsole first. See the example in the help file: ; Open a console window for this demonstration: DllCall("AllocConsole") ; Open the application's stdin/stdout streams in newline-translated mode. stdin := FileOpen...
by nnnik
17 Feb 2020, 08:19
Forum: AutoHotkey v2 Development
Topic: [ ??? ] FileOpen() Exception
Replies: 28
Views: 5521

Re: [ ??? ] FileOpen() Exception

The fact that the language is different on my PC probably mean that this is not an AHK error message but rather a Windows error message.
We have to decide whether we want to fix windows bugs in AHK with possible hackfixes.
by nnnik
17 Feb 2020, 07:32
Forum: AutoHotkey v2 Development
Topic: [ ??? ] FileOpen() Exception
Replies: 28
Views: 5521

Re: [ ??? ] FileOpen() Exception

I get: --------------------------- AutoHotkey Script (neu) (6).ahk --------------------------- Error: Es wurde versucht, auf ein Token zuzugreifen, das nicht vorhanden ist. Specifically: 1008 Line# ---> 001: file := FileOpen('*', 'w') 003: file.write("Test") 004: file.read() 005: Msgbox() 006: Exit ...
by nnnik
15 Feb 2020, 05:26
Forum: AutoHotkey v2 Development
Topic: [ ??? ] FileOpen() Exception
Replies: 28
Views: 5521

Re: [ ??? ] FileOpen() Exception

No you would use try whenever it is needed and makes sense: try { preprocess(fileobject) ; ... actprocess(fileobject) ; ... endprecess(fileobject) } Catch e { if (e.message ~= "Access Denied") { logFeedback("Couldnt open COM: Access denied - This often happens if there is another program open that t...
by nnnik
15 Feb 2020, 04:59
Forum: AutoHotkey v2 Development
Topic: [ ??? ] FileOpen() Exception
Replies: 28
Views: 5521

Re: [ ??? ] FileOpen() Exception

So you mean to say that you will just use A_LastError instead of ErrorLevel in v2? One of the biggest issues of v1 was ErrorLevel and the impossibility to properly debug it. v2 fixes this by throwing an Error whenever an Error occurs - to keep it stupid simple. This also means that if you use any ki...
by nnnik
15 Feb 2020, 01:54
Forum: AutoHotkey v2 Development
Topic: [ ??? ] FileOpen() Exception
Replies: 28
Views: 5521

Re: [ ??? ] FileOpen() Exception

Far less intuitive for new users.
by nnnik
14 Feb 2020, 13:58
Forum: AutoHotkey v2 Development
Topic: [ ??? ] FileOpen() Exception
Replies: 28
Views: 5521

Re: [ ??? ] FileOpen() Exception

This is what should happen.
I don't see how anything else should happen.
There will be no special circumstances for 500 unique cases just because someone in the forum finds it convenient.
A user writing a script needs to be informed when a command doesnt work.
Exceptions are the way of doing this.
by nnnik
10 Feb 2020, 05:33
Forum: Wish List
Topic: ImageSearch: Click center of found image
Replies: 13
Views: 5379

Re: ImageSearch: Click center of found image

You can probably make a function that does that for you.
by nnnik
07 Feb 2020, 17:14
Forum: Wish List
Topic: ImageSearch: Click center of found image
Replies: 13
Views: 5379

Re: ImageSearch: Click center of found image

I do agree that AutoHotkey should provide basic stuff like interaction with image files.
However it is also fairly simple to use GDIp to find the size of the image.
From then onwards its a rather simple math problem.
by nnnik
31 Jan 2020, 06:10
Forum: Offtopic
Topic: « What's on your mind? »
Replies: 4477
Views: 1066077

Re: « What's on your mind? »

https://thewuhanvirus.com/
in case you are interested

Go to advanced search