Search found 3453 matches

by nnnik
Yesterday, 06:07
Forum: Forum Issues
Topic: Fixing codeboxes
Replies: 82
Views: 3835

Re: Fixing codeboxes

by nnnik
14 Jan 2019, 14:40
Forum: Ich brauche Hilfe
Topic: HTML-Elemente klicken oder auswählen
Replies: 6
Views: 162

Re: HTML-Elemente klicken oder auswählen

Ist repariert - danke für den Hinweis
by nnnik
14 Jan 2019, 12:52
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 490
Views: 93962

Re: Suggestions on documentation improvements

AHK does not use .NET at all. AHK uses the WinAPI directly it seems to open the stream with:
https://docs.microsoft.com/en-us/window ... reatefilew
by nnnik
14 Jan 2019, 08:59
Forum: Ask For Help
Topic: an Array of "ClipboardAll" contents Topic is solved
Replies: 32
Views: 643

Re: an Array of "ClipboardAll" contents Topic is solved

Just use normal ifs. Using short circuit evaluation is considered unreadeable and bad practice.
If the goal is keeping the value below a specific value and then overflowing to the beginning again you could also consider using:

Code: Select all

k := mod(k, clipArr.MaxIndex()) + 1
by nnnik
14 Jan 2019, 02:21
Forum: Forum Issues
Topic: Fixing codeboxes
Replies: 82
Views: 3835

Re: Fixing codeboxes

I will see if I can fix the yellow highlighting.
by nnnik
13 Jan 2019, 15:12
Forum: Ask For Help
Topic: RunWaitOne error: 0x80070057 - The parameter is incorrect
Replies: 18
Views: 328

Re: RunWaitOne error: 0x80070057 - The parameter is incorrect

Did you add #NoEnv during this time perhaps? A_ComSpec is always available but ComSpec could be unavailable if #NoEnv was in effect.
by nnnik
13 Jan 2019, 14:44
Forum: AutoHotkey v2 Development
Topic: DllCall description Topic is solved
Replies: 24
Views: 689

Re: DllCall description Topic is solved

Now let's imagine, the default retval size is changed from int (int32) to int64, scripts that run with AHK64 and expect int (int32) will either fail instantly in most cases (easy to pinpoint) if the callee doesn't clean up the upper DWORD or will work w/o issues if the callee does clean up full rax...
by nnnik
13 Jan 2019, 10:33
Forum: Ich brauche Hilfe
Topic: HTML-Elemente klicken oder auswählen
Replies: 6
Views: 162

Re: HTML-Elemente klicken oder auswählen

Als alternative zum steuern von Webbrowsern gibt es auch noch Selenium und Chrome.ahk
by nnnik
13 Jan 2019, 06:15
Forum: Forum Issues
Topic: Fixing codeboxes
Replies: 82
Views: 3835

Re: Fixing codeboxes

I made the pull request - joedf or tank could probably already update the definitions we have.
See: https://github.com/PrismJS/prism/pull/1703

Edit: if you see any other things our Highlighting misses out on, please share it here.
by nnnik
13 Jan 2019, 03:47
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 490
Views: 93962

Re: Suggestions on documentation improvements

On the DLLCall page, in the ptr type description, there is a note that:
In order to pass NULL to a function pass the Integer 0.

This note is more confusing than helpful. We need to remove it, or rephrase it in a way that people know that an Integer value is meant and not the int type.
by nnnik
13 Jan 2019, 03:36
Forum: AutoHotkey v2 Development
Topic: DllCall description Topic is solved
Replies: 24
Views: 689

Re: DllCall description Topic is solved

AHK's int32 data type should not use bits 32..63 and lower bits 0..31 contain a valid 32 bit result. :D I'm not quite sure what you mean here. You said that using Ptr instead of Int would be fine on 64 bit, since the 32 bit values will be fine. But no they won't be fine. So I don't understand this ...
by nnnik
12 Jan 2019, 17:20
Forum: AutoHotkey v2 Development
Topic: DllCall description Topic is solved
Replies: 24
Views: 689

Re: DllCall description Topic is solved

When a script expects 32bit int as default and gets 64bit int64, it gets the same value. But when we truncate full x64 pointer, we might corrupt it and it would lead to an exception. No it doesn't. When values are returned from C functions the returning function just assigns the value to a specific...
by nnnik
12 Jan 2019, 17:11
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 490
Views: 93962

Re: Suggestions on documentation improvements

It locks other programs from editing the file and keeps you from deleting it I think.
by nnnik
12 Jan 2019, 07:08
Forum: Forum Issues
Topic: Fixing codeboxes
Replies: 82
Views: 3835

Re: Fixing codeboxes

I have identified the issue and prepared a fix - will try to merge it into the PrismJS AutoHotkey highlighter later today.
See: https://github.com/PrismJS/prism/issues/1700
by nnnik
12 Jan 2019, 03:45
Forum: Offtopic
Topic: « What's on your mind? » Topic is solved
Replies: 4066
Views: 527581

Re: « What's on your mind? » Topic is solved

Ever since Minecraft got taken over by Microsoft the game got 100% better - and its only been 2 updates so far.
by nnnik
11 Jan 2019, 12:05
Forum: Scripts and Functions
Topic: [func][v2] xDllCall - asynchronous DllCall
Replies: 4
Views: 249

Re: [func][v2] xDllCall - asynchronous DllCall

It looks nice :) Well done - might use this in the future.
by nnnik
11 Jan 2019, 03:56
Forum: Ich brauche Hilfe
Topic: AHK Studio - Einige Fragen
Replies: 1
Views: 59

Re: AHK Studio - Einige Fragen

Bei mir ist die < Taste kein Modifikator da ich sie zum programmieren brauche. Ich weiß ich wieso deine anderen Anwendungen das so sehen, aber du musst das wahrscheinlich über Hotkeys/Plugins lösen. Die Farben links repräsentieren wo du Änderungen gemacht hast. Zudem scheinen die Markierungen um ein...
by nnnik
11 Jan 2019, 03:36
Forum: Tutorials
Topic: Beginners OOP with AHK
Replies: 46
Views: 8642

Re: Beginners OOP with AHK

Well there are several types of Singletons in that topic.
I mostly use the super global automatically initiated one
by nnnik
10 Jan 2019, 20:37
Forum: Tutorials
Topic: Beginners OOP with AHK
Replies: 46
Views: 8642

Re: Beginners OOP with AHK

Well I would go over this in a later tutorial. What you discovered here is essentially a design pattern. Many people seem to find this particular pattern first. What you have in B would be called a Singleton. Design Patterns are reoccurring small patterns in our code that we use to tackle specific p...

Go to advanced search