[] vs ()

Ask for help, how to use AHK_H, etc.
User avatar
yane
Posts: 3
Joined: 12 May 2018, 01:48

[] vs ()

20 Aug 2019, 07:50

In the examples in the documentation and on this forum I encounter 2 different styles of syntax.
For example

Code: Select all

thread.ahkterminate[]

;and

thread.ahkterminate()
What is the difference?
Which one is correct?
When should one be used and when the other?
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: [] vs ()

20 Aug 2019, 15:13

Both are correct, you can use either but [] should be very little faster.

Return to “Ask for Help”

Who is online

Users browsing this forum: No registered users and 9 guests