[v1/2] broken PostMessage pause script example

Share your ideas as to how the documentation can be improved.
User avatar
Ragnar
Posts: 362
Joined: 30 Sep 2013, 15:25

Re: [v1/2] broken PostMessage pause script example

Post by Ragnar » 27 Jul 2020, 03:10

The doc is correct. Both ID_FILE_PAUSE and ID_TRAY_PAUSE can be used to pause another script. See source code in script2.cpp, line 5918:

Code: Select all

case ID_TRAY_PAUSE:
case ID_FILE_PAUSE:
	if (g->IsPaused)
		--g_nPausedThreads;
	else
		++g_nPausedThreads; // For this purpose the idle thread is counted as a paused thread.
	g->IsPaused = !g->IsPaused;
	g_script.UpdateTrayIcon();
	return true;
swagfag
Posts: 4126
Joined: 11 Jan 2017, 17:59

Re: [v1/2] broken PostMessage pause script example

Post by swagfag » 27 Jul 2020, 06:10

i was actually posting 65406(which turns out is listlines) instead of 65403
Spoiler
Post Reply

Return to “Suggestions on documentation improvements”