"ExitThreads" Command that forces any running threads from a given label, hotkey, etc to Exit
ExitThreads, Label, Generate
ExitThreads, Hotkey, F12
[Wish List] ExitThreads Command Topic is solved
Re: [Wish List] ExitThreads Command Topic is solved
You can use AutoHotkey.dll if you want to exit running threads, therefore the code needs to be run by AutoHotkey.dll.
In AHK_H v2 you can also run/terminate a thread without AutoHotkey.dll:
Code: Select all
thread:=AhkThread("Loop`nToolTip `% A_Now`nReturn")
#Esc::thread.ahkterminate()
Esc::ExitApp
Code: Select all
thread:=ExeThread("Loop`nToolTip `% A_Now`nReturn")
#Esc::thread.ahkterminate()
Esc::ExitApp
Re: [Wish List] ExitThreads Command
Is the example below possible?
What is the best way to use "AutoHotkey.dll" with AHK_L?
Code: Select all
F12::
F12HotkeyThread.ahkterminate()
F12HotkeyCode =
(
line 1
line 2
line 3
...
line 1000
)
F12HotkeyThread:=AhkThread(F12HotkeyCode)
return
Re: [Wish List] ExitThreads Command
Code: Select all
F12HotkeyCode =
(
line 1
line 2
line 3
...
line 1000
)
F12::F12HotkeyThread?F12HotkeyThread.ahkReload():F12HotkeyThread:=AhkThread(F12HotkeyCode)
DllCall, see AutoHotkey Module.Guest wrote:What is the best way to use "AutoHotkey.dll" with AHK_L?
Note that in v1 third parameter is for Commandline Parameters and second will be passed to script in A_ScriptOptions (see included help file in v1 download).
Who is online
Users browsing this forum: No registered users and 27 guests