<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gingakyo</author_name>
  <author_url>https://blog.hatena.ne.jp/gingakyo/</author_url>
  <blog_title>見よう見まねで Programmingライフ</blog_title>
  <blog_url>https://gingakyo-b.hatenablog.com/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>win32apiの SendInput()でマウスクリックをシミュレートするヤツ。普通に見かける解説の焼き直しです。 少し舞台を用意して、なんとなくの実用性をちらつかせたサンプルプログラムです。 サンプルプログラムの動作仕様 javascript側の処理 Hit test scrollIntoView getBoundingClientRect PowerShellスクリプト側の処理 SendInput() の呼び出しにモジュールPinvoke 2.1.0 座標の足し算 サンプルプログラムの格納場所 後書き # mouse event の isTrustedプロパティ サンプルプログラムの動作…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgingakyo-b.hatenablog.com%2Fentry%2F2026%2F07%2F14%2F144357&quot; title=&quot;PowerShellでWebView2をMouseクリックする - 見よう見まねで Programmingライフ&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/g/gingakyo/20260625/20260625022837.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-07-14 14:43:57</published>
  <title>PowerShellでWebView2をMouseクリックする</title>
  <type>rich</type>
  <url>https://gingakyo-b.hatenablog.com/entry/2026/07/14/144357</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
