How to add parameters into AhkThread ? Topic is solved

Post AHK_H specific scripts & libraries and discuss the usage and development of HotKeyIt's fork/branch
gameba
Posts: 10
Joined: 20 Mar 2018, 12:24

How to add parameters into AhkThread ?

26 Mar 2018, 04:19

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



I tried add parameter to AhkThread. A_Args[1], A_Args[2] work fine, but A_Args[3] not get A_Index value. Pls, Help me!
HotKeyIt
Posts: 1639
Joined: 29 Sep 2013, 18:35
Contact:

Re: How to add parameters into AhkThread ?  Topic is solved

26 Mar 2018, 18:30

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

guest3456
Posts: 2302
Joined: 09 Oct 2013, 10:31

Re: How to add parameters into AhkThread ?

26 Mar 2018, 20:47

ahk v2 used to allow this syntax:

"1 2 %A_Index%"

but lexikos removed it. so you can no longer deference inside a quoted string, so you have to do it the same as in v1 as HotKeyIt showed

Galaxis
Posts: 11
Joined: 04 Feb 2016, 20:09

Re: How to add parameters into AhkThread ?

01 May 2018, 22:13

HotKeyIt wrote:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus




Noob question- i just started using AHK_H recently for its multithreading. I was curious about the usage of ("( )") and its function. If I had to guess, it seems similar to concatenate. Is this the sole method for going to a new line- making the code look all neat and crisp? I don't remember that being possible in normal AHK
swagfag
Posts: 519
Joined: 11 Jan 2017, 17:59

Re: How to add parameters into AhkThread ?

01 May 2018, 23:47

thats the continuation section from ahk_l
though there are some differences in behaviour switching from v1 to v2

https://autohotkey.com/docs/Scripts.htm#continuation
https://lexikos.github.io/v2/docs/Scrip ... ntinuation
Galaxis
Posts: 11
Joined: 04 Feb 2016, 20:09

Re: How to add parameters into AhkThread ?

02 May 2018, 11:49

Ur awesome! thanks

Return to “AutoHotkey_H”

Who is online

Users browsing this forum: No registered users and 1 guest