Threads exchanging variables
Posted: 02 May 2018, 13:09
What is a very basic way to have the 3rd thread identify that the Sky is blue, and time is 10am. Perhaps I wrote the code wrong because I'm getting empty message boxes .
I don't want to have to use ini files.
Copied a line in the example documentation, but no dice.
Are aliases more appropriate for what I am trying, instead of the code below? https://hotkeyit.github.io/v2/docs/commands/Alias.htm
I don't want to have to use ini files.
Copied a line in the example documentation, but no dice.
Are aliases more appropriate for what I am trying, instead of the code below? https://hotkeyit.github.io/v2/docs/commands/Alias.htm
Code: Select all
Thread1:=AhkThread("Sky := Blue")
Thread2:=AhkThread("Time := 10am")
Thread3:=AhkThread("
(
Msgbox % Thread1.ahkgetvar.Sky
Msgbox % Thread2.ahkgetvar.Time
)")