basic terminology: hotkey, thread Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
User avatar
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

basic terminology: hotkey, thread

24 Dec 2016, 17:45

Code: Select all

SendInput q
SendInput w
how do you refer to 'q::', a hotkey line, a hotkey trigger, a hotkey trigger line?
how do you refer to the 3 lines from 'q::' to 'Return', a thread?

apologies for such a basic question!
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Posts: 2364
Joined: 29 Sep 2013, 18:35

Re: basic terminology: hotkey, thread

24 Dec 2016, 17:57

q::SendInput q would be one-line hotkey.

Code: Select all

SendInput q
q:: is a Hotkey + Label (you can do GoSub q), the line below is hotkey or label target and until Return I would call execution block.
Posts: 8318
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: basic terminology: hotkey, thread  Topic is solved

25 Dec 2016, 22:24

For q::, the documentation uses the term "hotkey label".

Altogether, the three lines can be referred to as a "subroutine".

A "thread" is not something you see in the script; it is part of the program's state while it is running.
The current thread is defined as the flow of execution invoked by the most recent event;
Source: Threads
If you think of it as data, a "thread" is a combination of an execution pointer (which line or instruction is currently being executed) and a bunch of settings and other information (like A_SendMode and A_Gui).

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], tatagi and 47 guests