How to add parameters into AhkThread ?

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: How to add parameters into AhkThread ?

Re: How to add parameters into AhkThread ?

Post by Galaxis » 02 May 2018, 11:49

Ur awesome! thanks

Re: How to add parameters into AhkThread ?

Post by swagfag » 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

Re: How to add parameters into AhkThread ?

Post by Galaxis » 01 May 2018, 22:13

HotKeyIt wrote:

Code: [Select all] [Expand]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

Re: How to add parameters into AhkThread ?

Post by guest3456 » 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

Re: How to add parameters into AhkThread ?

Post by HotKeyIt » 26 Mar 2018, 18:30

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

How to add parameters into AhkThread ?

Post by gameba » 26 Mar 2018, 04:19

Code: [Select all] [Expand]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!

Top