Search found 2537 matches

by nnnik
Today, 01:15
Forum: AutoHotkey v2 Development
Topic: Functions | &ByRef • ByVal
Replies: 20
Views: 450

Re: Functions | &ByRef • ByVal

I can only repeat what I said before.
by nnnik
24 Apr 2018, 15:45
Forum: Bug Reports
Topic: Complex Regular Expressions fail when input exceeds a certain length.
Replies: 16
Views: 306

Re: Complex Regular Expressions fail when input exceeds a certain length.

Yeah the stuff for recursion seemed pretty powerful.
Other than that I can't quite remember everything.
I still do reccomend reading it - it was a nice experience
by nnnik
24 Apr 2018, 15:38
Forum: AutoHotkey v2 Development
Topic: For-loops | Range object
Replies: 12
Views: 264

Re: For-loops | Range object

I think allowing for custom enumerators which take a variable amount of input variables would be a nice addition for AHK v2
by nnnik
24 Apr 2018, 09:30
Forum: Bug Reports
Topic: Complex Regular Expressions fail when input exceeds a certain length.
Replies: 16
Views: 306

Re: Complex Regular Expressions fail when input exceeds a certain length.

iseahound have you tried running the regexmatch repeadetly?

@just me:
I learned them from regEx101.com one time I went ahead and learned all of the regex tags they have their - it was worth it.
by nnnik
24 Apr 2018, 08:43
Forum: AutoHotkey v2 Development
Topic: For-loops | Range object
Replies: 12
Views: 264

Re: For-loops | Range object

I think for index in range with only one variable seems better.
by nnnik
24 Apr 2018, 01:25
Forum: Ich brauche Hilfe
Topic: Cursor Edit Box verschieben
Replies: 2
Views: 26

Re: Cursor Edit Box verschieben

Wenn du dein Skript startest ist die erste Edit Box fokusiert.
Wenn du dann versuchst das Caret der 2. zu verändern - die dank fehlendem Fokus kein Caret hat - reagiert Windows komisch.
by nnnik
24 Apr 2018, 01:16
Forum: Bug Reports
Topic: Complex Regular Expressions fail when input exceeds a certain length.
Replies: 16
Views: 306

Re: Complex Regular Expressions fail when input exceeds a certain length.

It seems to me like you are making this more complex than it actually is. You are using the RegEx to acertain that: The string is in 4 byte groups of characters There are only characters that are allowed to go inside the groups are inside the group At the end the = sign is used to fill up the last g...
by nnnik
23 Apr 2018, 16:29
Forum: Ask For Help
Topic: OOP AHK good practise - validation, setters, throw exception
Replies: 9
Views: 206

Re: OOP AHK good practise - validation, setters, throw exception

Using meta functions sounds easy in theory. In practice you will end up in the so called 'callback hell'. Many bugs many issues and its just no fun debugging them. properties are a specific syntax construct which allows you to define the __Get and __Set meta functions for a specific key: class prope...
by nnnik
23 Apr 2018, 15:59
Forum: Ask For Help
Topic: OOP AHK good practise - validation, setters, throw exception
Replies: 9
Views: 206

Re: OOP AHK good practise - validation, setters, throw exception

1. it helps finding bugs and keeps the uses of your code clean - I would reccomend doing it, but Im rather lazy myself 2. that is different for every programmer - whats important is that you stick with it. So far I have always returned width however I do not really consider at an advantage 3. yes - ...
by nnnik
22 Apr 2018, 16:48
Forum: Tips and Tricks
Topic: Branch Predition - weird benchmarks and specter
Replies: 2
Views: 89

Branch Predition - weird benchmarks and specter

I want to write about this topic since one of the members in this forums had troubles with benchmark results. However I also think that this is a very interesting topic that can show you some detailed in depth information about the wonders of how your CPU works and thinks. I'm going to present it di...
by nnnik
22 Apr 2018, 13:39
Forum: AutoHotkey v2 Development
Topic: Functions | &ByRef • ByVal
Replies: 20
Views: 450

Re: Functions | &ByRef • ByVal

You seem to be misunderstanding something Helgef. Denoting that a parameter is byref is showing that the variable is used to output data. In some cases the variable is also used for input purposes. In AutoHotkey passing a string byRef has the side effect of being faster than passing it byVal. That i...
by nnnik
22 Apr 2018, 13:38
Forum: Ich brauche Hilfe
Topic: Anfänger braucht Hilfe beim Rechnen mit Variabeln
Replies: 9
Views: 87

Re: Anfänger braucht Hilfe beim Rechnen mit Variabeln

Es scheint mir so, als würdest du diese Sprache lernen wollen, also würde ich dir ungerne - wie just me es vorschlägt - alles auf einem Tablett servieren. Wieso machst du bei den GuiControl Befehl Befehlen in Spannung und Strom eine große if/else if Leiter auf wenn du doch ganz einfach wie bei der M...
by nnnik
22 Apr 2018, 08:37
Forum: Ich brauche Hilfe
Topic: Anfänger braucht Hilfe beim Rechnen mit Variabeln
Replies: 9
Views: 87

Re: Anfänger braucht Hilfe beim Rechnen mit Variabeln

Wenn du Berechnungen in eine Variable schreibst musst du := anstatt = verwenden.
Die 2 haben eine a andere Bedeutung
by nnnik
22 Apr 2018, 03:57
Forum: AutoHotkey v2 Development
Topic: Functions | &ByRef • ByVal
Replies: 20
Views: 450

Re: Functions | &ByRef • ByVal

By Val seems to be the most common case of usage. So why should we set the default to the uncommon use case?
Replacing the current string stuff with a string class and a separate binary class seems like a better idea over the long run.
by nnnik
22 Apr 2018, 03:49
Forum: AutoHotkey v2 Development
Topic: For-loops | Range object
Replies: 12
Views: 264

Re: For-loops | Range object

That's true I never talked about variables - when working on arrays for in is the way to go. The question is if the single use case of Loop, count warrants a whole new type of Loop. But as far as I can tell t that will have to wait for v3. The for loop actually really seems outdated to me. At least ...
by nnnik
22 Apr 2018, 01:45
Forum: AutoHotkey v2 Development
Topic: For-loops | Range object
Replies: 12
Views: 264

Re: For-loops | Range object

lexikos the loop itself is not slower but inside the loop you will have to perform look-ups inside the loop body in order to iterate over the array. The for loop used the arrays iterator to access it. A single look-up has a complexity of O( log(n) ) . The iterator takes a constant time to get the ne...
by nnnik
21 Apr 2018, 15:07
Forum: AutoHotkey v2 Development
Topic: long path support
Replies: 8
Views: 196

Re: long path support

The file object is meant for interacting with the file content not with the container. Controlling both the container and the content with a single Object could cause issues if the data container is not a normal file - which could happen if it is not a normal file object but rather an object which i...
by nnnik
21 Apr 2018, 05:13
Forum: AutoHotkey v2 Development
Topic: For-loops | Range object
Replies: 12
Views: 264

Re: For-loops | Range object

Yeah it is - except that it is more modern.
The outdated for loop you suggested would be slower when operating on arrays than the normal AutoHotkey for loop - and by a whole exponent.
by nnnik
21 Apr 2018, 00:08
Forum: Wish List
Topic: Property features
Replies: 0
Views: 74

Property features

Properties are a class related Syntax that provides a nice alternative for meta functions. It also allows developers to refactor code more easily after it has been written. Generally I always found them lacking in the sense that there are some issues that you will have when using them - which always...

Go to advanced search