ahkdll icon indicating copy to clipboard operation
ahkdll copied to clipboard

[BUG] making threadobject threads persistent doesn't work

Open CapnOdin opened this issue 3 years ago • 1 comments

This won't be persistent if run as a thread

#Persistent
SetTimer((*) => ToolTip("Persistent Timer Running", , , 3), 100)

adding an infinite loop makes it stay running

#Persistent
SetTimer((*) => ToolTip("Busy Timer Running", , , 3), 100)

loop {
	Sleep(100)
}

I tested it using the script bellow

#Persistent
timerThread := ThreadObj("#Include persistent timer.ahkh2")
loopThread := ThreadObj("#Include busy timer.ahkh2")

CapnOdin avatar Jun 11 '21 17:06 CapnOdin

If this is a known issue or limitation that I have missed then I apologize for wasting anyone's time.

CapnOdin avatar Jun 11 '21 17:06 CapnOdin