<?xml version="1.0" encoding="iso-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Dansk Regneark Forum : kopier clipboard til Stickynotes</title>
  <link>https://forum.excel-regneark.dk/</link>
  <description><![CDATA[Dette er et XML Feed af; Dansk Regneark Forum : Makro og VBA : kopier clipboard til Stickynotes]]></description>
  <pubDate>Sat, 05 Dec 2026 11:07:33 +0000</pubDate>
  <lastBuildDate>Wed, 10 May 2023 08:08:40 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.excel-regneark.dk/RSS_post_feed.asp?TID=4927</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Dansk Regneark Forum]]></title>
   <url>https://forum.excel-regneark.dk/css_styles/Excel-regneark.dk/logo.png</url>
   <link>https://forum.excel-regneark.dk/</link>
  </image>
  <item>
   <title><![CDATA[kopier clipboard til Stickynotes : Jeg har en application til at...]]></title>
   <link>https://forum.excel-regneark.dk/kopier-clipboard-til-stickynotes_topic4927_post24353.html#24353</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=2155">nordicdust</a><br /><strong>Emne:</strong> 4927<br /><strong>Sendt:</strong> 10.Maj.2023 kl. 08:08<br /><br />Jeg har en application til at slå emner op på vores server, det kan være adersse eller ejendoms nummer, som den virker nu viser applicationen det søgte i en MsgBox. Jeg har forsøgt at lave en kode der kopier det til stickynotes, men det er ikke lykkes. Er der en her der måske har prøvet det og fået til at virke, eller kan se hvorfor mit ikke gør.<div>Jeg kan få Stickynotes frem men det er hvor den skal sætte fokus så jeg kan sende fra clipboard den bare stopper. Kode er nedenfor.<br><div>Jeg bruger windows 10 office 2016 64bit.</div></div><div><br></div><div><div>Sub CreateStickyNoteAndPaste2()</div><div><br></div><div>&nbsp; &nbsp; ' Launch Sticky Notes</div><div>&nbsp; &nbsp; Shell "explorer.exe shell:appsFolder\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe!App", vbNormalFocus</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ' Wait for Sticky Notes to appear</div><div>&nbsp; &nbsp; Dim hwndStickyNote As LongPtr</div><div>&nbsp; &nbsp; Do While hwndStickyNote = 0</div><div>&nbsp; &nbsp; &nbsp; &nbsp; hwndStickyNote = FindWindowExW(0, 0, "ApplicationFrameWindow", vbNullString)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DoEvents</div><div>&nbsp; &nbsp; Loop</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ' Find the Sticky Notes window</div><div>&nbsp; &nbsp; hwndStickyNote = FindWindowExW(hwndStickyNote, 0, "Windows.UI.Core.CoreWindow", vbNullString)</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ' Set Sticky Notes as the foreground window</div><div>&nbsp; &nbsp; SetForegroundWindow hwndStickyNote</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ' Find the edit control</div><div>&nbsp; &nbsp; Dim hwndEdit As LongPtr</div><div>&nbsp; &nbsp; hwndEdit = FindWindowExW(hwndStickyNote, 0, "Edit", vbNullString)</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ' Click on the edit control to give it focus</div><div>&nbsp; &nbsp; SendMessageW hwndEdit, &amp;HF5, 0, ByVal 0&amp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ' Open the clipboard</div><div>&nbsp; &nbsp; OpenClipboard hwndEdit</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ' Retrieve the clipboard data</div><div>&nbsp; &nbsp; Dim hData As LongPtr</div><div>&nbsp; &nbsp; hData = GetClipboardData(&amp;HCF)</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ' Close the clipboard</div><div>&nbsp; &nbsp; CloseClipboard</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ' Paste the data into the edit control</div><div>&nbsp; &nbsp; SendMessageW hwndEdit, &amp;H302, 0, ByVal hData</div><div>&nbsp; &nbsp;&nbsp;</div><div>End Sub</div></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 10 May 2023 08:08:40 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/kopier-clipboard-til-stickynotes_topic4927_post24353.html#24353</guid>
  </item> 
 </channel>
</rss>