<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Refresh_SysTray</id>
	<title>Refresh SysTray - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Refresh_SysTray"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Refresh_SysTray&amp;action=history"/>
	<updated>2026-04-23T21:11:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=Refresh_SysTray&amp;diff=25837&amp;oldid=prev</id>
		<title>Artemad: Fixed LParam for WM_MOUSEMOVE</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Refresh_SysTray&amp;diff=25837&amp;oldid=prev"/>
		<updated>2022-12-08T16:59:16Z</updated>

		<summary type="html">&lt;p&gt;Fixed LParam for WM_MOUSEMOVE&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;â† Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:59, 8 December 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l45&quot;&gt;Line 45:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 45:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		IntOp $6 $2 - $6&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		IntOp $6 $2 - $6&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		LoopX:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		LoopX:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			SendMessage $0 ${WM_MOUSEMOVE} 0 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;quot;&lt;/del&gt;$&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;6 | $7&amp;quot;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			IntOp $8 $7 &amp;lt;&amp;lt; 16&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			IntOp $8 $8 + $6&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			SendMessage $0 ${WM_MOUSEMOVE} 0 $&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;8&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			IntOp $6 $6 - $4&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			IntOp $6 $6 - $4&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			IntCmp $6 0 EndLoopX EndLoopX LoopX&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			IntCmp $6 0 EndLoopX EndLoopX LoopX&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key n22049_wiki-wiki_:diff::1.12:old-16998:rev-25837 --&gt;
&lt;/table&gt;</summary>
		<author><name>Artemad</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=Refresh_SysTray&amp;diff=16998&amp;oldid=prev</id>
		<title>74.191.77.74: Created page with &#039;== How to Use == This function is useful after killing a process that has a system tray icon.  This will clear out the icon as though the cursor had been moved over it.  &lt;highlig...&#039;</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Refresh_SysTray&amp;diff=16998&amp;oldid=prev"/>
		<updated>2009-04-16T12:24:57Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;== How to Use == This function is useful after killing a process that has a system tray icon.  This will clear out the icon as though the cursor had been moved over it.  &amp;lt;highlig...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== How to Use ==&lt;br /&gt;
This function is useful after killing a process that has a system tray icon.  This will clear out the icon as though the cursor had been moved over it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;&lt;br /&gt;
Call RefreshSysTray&lt;br /&gt;
&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== The Function ==&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;&lt;br /&gt;
!include WinMessages.nsh&lt;br /&gt;
!include &amp;quot;${NSISDIR}\Examples\System\System.nsh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Function RefreshSysTray&lt;br /&gt;
	; $0: SysTray Window Handle&lt;br /&gt;
	FindWindow $0 &amp;quot;Shell_TrayWnd&amp;quot; &amp;quot;&amp;quot;&lt;br /&gt;
	FindWindow $0 &amp;quot;TrayNotifyWnd&amp;quot; &amp;quot;&amp;quot; $0&lt;br /&gt;
	FindWindow $0 &amp;quot;SysPager&amp;quot; &amp;quot;&amp;quot; $0&lt;br /&gt;
	FindWindow $0 &amp;quot;ToolbarWindow32&amp;quot; &amp;quot;&amp;quot; $0&lt;br /&gt;
&lt;br /&gt;
	; Create RECT struct&lt;br /&gt;
	System::Call &amp;quot;*${stRECT} .r1&amp;quot;&lt;br /&gt;
	; Get windows information&lt;br /&gt;
	System::Call &amp;quot;User32::GetWindowRect(i, i) i (i r0, r1) .r2&amp;quot;&lt;br /&gt;
	; Get left/top/right/bottom coords&lt;br /&gt;
	; $2: Left, $3: Top, $4: Right, $5: Bottom&lt;br /&gt;
	System::Call &amp;quot;*$1${stRECT} (.r2, .r3, .r4, .r5)&amp;quot;&lt;br /&gt;
	System::Free $1&lt;br /&gt;
&lt;br /&gt;
	; $2: Width&lt;br /&gt;
	IntOp $2 $4 - $2&lt;br /&gt;
	; $3: Height&lt;br /&gt;
	IntOp $3 $5 - $3&lt;br /&gt;
&lt;br /&gt;
	; $4: Small Icon Width&lt;br /&gt;
	System::Call &amp;#039;User32::GetSystemMetrics(i 49) i .r4&amp;#039;&lt;br /&gt;
	; $5: Small Icon Height&lt;br /&gt;
	System::Call &amp;#039;User32::GetSystemMetrics(i 50) i .r5&amp;#039;&lt;br /&gt;
&lt;br /&gt;
	; $7: y - Start at the bottom&lt;br /&gt;
	IntOp $7 $4 / 2&lt;br /&gt;
	IntOp $7 $3 - $7&lt;br /&gt;
	LoopY:&lt;br /&gt;
		; $6: X - Start at the right&lt;br /&gt;
		IntOp $6 $5 / 2&lt;br /&gt;
		IntOp $6 $2 - $6&lt;br /&gt;
		LoopX:&lt;br /&gt;
			SendMessage $0 ${WM_MOUSEMOVE} 0 &amp;quot;$6 | $7&amp;quot;&lt;br /&gt;
			IntOp $6 $6 - $4&lt;br /&gt;
			IntCmp $6 0 EndLoopX EndLoopX LoopX&lt;br /&gt;
		EndLoopX:&lt;br /&gt;
		IntOp $7 $7 - $5&lt;br /&gt;
		IntCmp $7 0 EndLoopY EndLoopY LoopY&lt;br /&gt;
	EndLoopY:&lt;br /&gt;
FunctionEnd&lt;br /&gt;
&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:System Related Functions]]&lt;/div&gt;</summary>
		<author><name>74.191.77.74</name></author>
	</entry>
</feed>