Power Automate Desktopでマウスの位置を取得する方法

lost-cat IT

マウスの位置を取得します」アクションでは、現在マウスのある位置の座標をx、yそれぞれ取得することができます。

スポンサーリンク

マウスの位置を取得します

PowerAutomateDesktop
マウスの位置を取得しますは、アクションペインのマウスとキーボードから追加できます。
PowerAutomateDesktop マウスの位置を取得します2
追加するとダイアログが表示されます。

相対

PowerAutomateDesktop マウスの位置を取得します3
座標の基本軸をPC画面の左上に置くか、フォアグラウンドウィンドウの左上に置くかを選択できます。
PowerAutomateDesktop マウスの位置を取得します4
画面であればモニターの左上が0,0となり、右下が解像度の最大値となります。赤丸の当たりにマウスを置いても、ウィンドウが画面内のどの位置にあるかで数値は変動します。
PowerAutomateDesktop マウスの位置を取得します5
フォアグラウンドウィンドウの場合、画面内での位置にかかわらず、最前面のウィンドウの左上が0,0となります。

生成された変数

PowerAutomateDesktop マウスの位置を取得します6
マウスのx位置、y位置がそれぞれ変数化されます。
変数名をクリックすることで名前の変更、{x}をクリックで既存の変数に上書きすることができます。
PowerAutomateDesktop マウスの位置を取得します7
不要であれば、スイッチをオフにして変数を生成させないこともできます。

エラー発生時

PowerAutomateDesktop マウスの位置を取得します8
左下のエラー発生時をクリックすると、
PowerAutomateDesktop マウスの位置を取得します9
エラー時の処理を記述することができます。
「詳細」では非インタラクティブモードでマウスの位置を取得できない場合を指定できます。
Microsoft Power Automate Desktop(PAD)アクション、使い方一覧
Power Automate Desktopの使い方を機能・分類別に参照できるまとめです。

コメント

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny