<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>naari_3</author_name>
  <author_url>https://blog.hatena.ne.jp/naari_3/</author_url>
  <blog_title>名有りさんの日記</blog_title>
  <blog_url>https://naari.hatenablog.com/</blog_url>
  <categories>
    <anon>Rust</anon>
  </categories>
  <description>最近、おそらくは常駐させているなんかのアプリの影響で、急にウィンドウのフォーカスを奪われることがある。例えば、普通にVSCodeで何かを書いてる時、急にフォーカスが飛ぶと普通にびっくりするし、何度も繰り返されるとイライラする。 直接的な原因になりそうなアプリが思いつくわけでもなかったので、どうにかしてフォーカスを奪ってくるアプリを知る必要があると思った。 こういうニッチなケースに関しては、サクッとコードを書くのが良いとされているので、そういうコンソールアプリを作ろう！と思い立った。 WindowsのAPIをバリバリに叩くアプリだし、しかも今回の場合はフック先の関数とかも書かないといけなさそうな…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnaari.hatenablog.com%2Fentry%2F2024%2F03%2F25%2F173902&quot; title=&quot;ChatGPTの手を借りつつ、超簡単なWindowsネイティブアプリをRustでつくった - 名有りさんの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/n/naari_3/20240325/20240325165950.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-03-25 17:39:02</published>
  <title>ChatGPTの手を借りつつ、超簡単なWindowsネイティブアプリをRustでつくった</title>
  <type>rich</type>
  <url>https://naari.hatenablog.com/entry/2024/03/25/173902</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
