Search found 3777 matches

by nnnik
Today, 05:38
Forum: Ask For Help
Topic: DllCall: Str*
Replies: 1
Views: 32

Re: DllCall: Str*

Hmm I thought of functions that expect something like TChar ** or LPTSTR *.
by nnnik
Today, 05:35
Forum: Ask For Help
Topic: Counting how many times item is in string Topic is solved
Replies: 9
Views: 100

Re: Counting how many times item is in string Topic is solved

Almost everything in AHK is caseInsensitive.
by nnnik
Today, 05:31
Forum: Ask For Help
Topic: Create a class via class name Topic is solved
Replies: 4
Views: 71

Re: Create a class via class name Topic is solved

Classes are just class objects stored in super global variables. With %% we can look up a variable by its name. Nested classes are stored inside the parent class in a key with their name. Generally AHK uses this naming Scheme for subclasses: "ParentClassName.ChildClassName" A class object that you g...
by nnnik
Today, 05:16
Forum: Ask For Help
Topic: Counting how many times item is in string Topic is solved
Replies: 9
Views: 100

Re: Counting how many times item is in string Topic is solved

When using an array like a dictionary it might be good to use ObjRawGet and ObjRawSet.
In this case however it isn't necessary.
by nnnik
Today, 04:40
Forum: Ask For Help
Topic: A control's variable must be global or static
Replies: 4
Views: 162

Re: A control's variable must be global or static

You are assigning a local variable as a name to a GUI Control.
The Control stays around but all local variables are cleaned after the function exits.
The GUI Control however requires the variable to stay around.
by nnnik
16 Apr 2019, 13:01
Forum: Forum Issues
Topic: Where is the Chinese Forum ?
Replies: 48
Views: 2451

Re: Where is the Chinese Forum ?

Moderation is more than filtering out spam.
by nnnik
13 Apr 2019, 19:26
Forum: Ask For Help
Topic: Which is the best way to enumerate array elements? Topic is solved
Replies: 35
Views: 669

Re: Which is the best way to enumerate array elements? Topic is solved

Object creation is incredibly slow in AHK in practice and there even is a real theoretical reason why. And even if you wouldn't create the object all the time the for-loop might be slower here than the Parse loop. I don't get what your point is though - if we get an existing array and need to iterat...
by nnnik
13 Apr 2019, 05:47
Forum: Ask For Help
Topic: Which is the best way to enumerate array elements? Topic is solved
Replies: 35
Views: 669

Re: Which is the best way to enumerate array elements? Topic is solved

Are you like trolling?
To conclude this topic: The for loop is magnitudes faster.
by nnnik
13 Apr 2019, 05:19
Forum: Ask For Help
Topic: Which is the best way to enumerate array elements? Topic is solved
Replies: 35
Views: 669

Re: Which is the best way to enumerate array elements? Topic is solved

There is no other explination than the code simply being wrong here. :P
by nnnik
13 Apr 2019, 04:16
Forum: Forum Issues
Topic: mention feature drop-down list
Replies: 9
Views: 185

Re: mention feature drop-down list

I disagree.If I want to mention a specific person in a topic I don't want to type them out.
Unless ofc we add some sort of name restriction.
by nnnik
12 Apr 2019, 15:57
Forum: Ask For Help
Topic: Trouble understanding callback function's args by address
Replies: 7
Views: 161

Re: Trouble understanding callback function's args by address

And the upper bits might not be set correctly.
by nnnik
12 Apr 2019, 14:03
Forum: Forum Issues
Topic: problem if using replay with quote. menton pupup are blocking
Replies: 14
Views: 313

Re: problem if using replay with quote. menton pupup are blocking

Was able to recreate the behavior.
Just type @SL5 somewhere in your post and it will stay open forever.
by nnnik
12 Apr 2019, 12:10
Forum: Forum Issues
Topic: fix this!!!
Replies: 65
Views: 2811

Re: fix this!!!

This is the content of a post that keeps triggering anti spam measures ^
@tank
by nnnik
12 Apr 2019, 08:43
Forum: Ask For Help
Topic: Trouble understanding callback function's args by address
Replies: 7
Views: 161

Re: Trouble understanding callback function's args by address

Adding +0 makes AHK treat var like a pointer and prevents AHK from interpreting said variable as a byref variable and numget the binary contents of its string buffer. The example seems to be written for AHK 32 bit. The DllCall passes along a float and a 64 bit integer bringing the total size of para...
by nnnik
12 Apr 2019, 07:50
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 297
Views: 69943

Re: GDI+ standard library 1.45 by tic

The RotateAt method is a C++ library wrapper around the DllCalls. This specific method probably just performs multiple of the basic operations: Move the point that you want to rotate around to the center using GdipTranslateMatrix Rotate using GdipRotateMatrix Move the point back to where it was befo...
by nnnik
12 Apr 2019, 04:14
Forum: Ask For Help
Topic: Which is the best way to enumerate array elements? Topic is solved
Replies: 35
Views: 669

Re: Which is the best way to enumerate array elements? Topic is solved

Short answer: The normal loop is slower than the for loop. The for loop has access to the internal data structure and can take one element after the next without performing lookups, but creates overhead by creating an enumerator object. The normal loop uses lookups for each iteration but doesn't cre...
by nnnik
11 Apr 2019, 21:19
Forum: Ask For Help
Topic: Four unique random integers between one and ten?
Replies: 10
Views: 188

Re: Four unique random integers between one and ten?

If the input is open to us, the sorting is done with strings and you expect the final result to be a string it may make sense to only use strings. I definitively would prefer to keep it array at all times though. number_of_positions := 10 numbers_to_pick := 4 candidate_positions := "1" Loop %number_...
by nnnik
11 Apr 2019, 19:07
Forum: Forum Issues
Topic: fix this!!!
Replies: 65
Views: 2811

Re: fix this!!!

pm me your ip
OK found out your ip using advanced magic and you are now unbanned.
by nnnik
10 Apr 2019, 09:16
Forum: Scripts and Functions
Topic: Direct2D
Replies: 2
Views: 250

Re: Direct2D

Cool script 👍
You should ask questions in Ask for Help though :P

Go to advanced search