Search found 2532 matches

by nnnik
Today, 01:25
Forum: Ich brauche Hilfe
Topic: Cursor Edit Box verschieben
Replies: 2
Views: 17

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
Today, 01:16
Forum: Bug Reports
Topic: Complex Regular Expressions fail when input exceeds a certain length.
Replies: 10
Views: 185

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
Yesterday, 16:29
Forum: Ask For Help
Topic: OOP AHK good practise - validation, setters, throw exception
Replies: 9
Views: 174

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
Yesterday, 15:59
Forum: Ask For Help
Topic: OOP AHK good practise - validation, setters, throw exception
Replies: 9
Views: 174

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: 76

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: 18
Views: 338

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: 85

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: 85

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: 18
Views: 338

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: 9
Views: 184

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: 9
Views: 184

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: 184

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: 9
Views: 184

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: 64

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...
by nnnik
20 Apr 2018, 10:50
Forum: Tips and Tricks
Topic: AutoHotkey syntax lists (text files)
Replies: 16
Views: 233

Re: AutoHotkey syntax lists (text files)

We should probably use github for hosting though - so that people can edit it and see it in public.
Thanks for the link i will use it.

I dont understand what you mean - do you already have a list for operators?
by nnnik
20 Apr 2018, 08:48
Forum: Tips and Tricks
Topic: AutoHotkey syntax lists (text files)
Replies: 16
Views: 233

Re: AutoHotkey syntax lists (text files)

No just a list of operators. I wouldn't even mention precedence.
Also not/Or/And are operators.
Methods should be in their file - I might do this this weekend.
Maintaining this list should help people to implement proper Syntax Highlighting for the latest version.

v2 should be it's own zip
by nnnik
20 Apr 2018, 06:59
Forum: Tips and Tricks
Topic: AutoHotkey syntax lists (text files)
Replies: 16
Views: 233

Re: AutoHotkey syntax lists (text files)

Object methods are not keywords. We also need operators. Keywords are parameters that commonly give or have special meaning for functions/commands or methods and are very specific. Im not sure about that definition - but keywords is something that is commonly used to define syntax highlighters and i...
by nnnik
20 Apr 2018, 00:12
Forum: Tips and Tricks
Topic: AutoHotkey syntax lists (text files)
Replies: 16
Views: 233

Re: AutoHotkey syntax lists (text files)

Also consistent with Commands Directives, Functions etc: NamesKeywords.txt: [code file=NamesKeywords.txt:34ao9wzh]Abort AboveNormal Abs ACos Add ahk_class ahk_exe ahk_group ahk_id ahk_pid All Alnum Alpha AltSubmit AltTab AltTabAndMenu AltTabMenu AltTabMenuDismiss AlwaysOnTop And Asc ASin ATan AutoSi...
by nnnik
19 Apr 2018, 23:57
Forum: Tips and Tricks
Topic: AutoHotkey syntax lists (text files)
Replies: 16
Views: 233

Re: AutoHotkey syntax lists (text files)

Thanks

Go to advanced search