web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Mouse movement with de...
Power Automate
Answered

Mouse movement with decimal values

(0) ShareShare
ReportReport
Posted on by 26

Hello, I need to put in the mouse movement values with decimals for example 8,7 but I get the error that only leaves values with whole numbers, is there any way to make a mouse movement with decimal values?


Thank you very much for your time.

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Why do you need to move it 8,7 pixels? 🤔

  • speedhb90 Profile Picture
    26 on at

    Because I have to drag an object on the screen in a very precise way.

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    There's no such thing as a 0,7 of a pixel in PAD. This will simply not work. You may try changing your screen resolution or zoom to a point where the drag and drop action would work without using decimals. If that doesn't resolve your issue, I'm afraid, this will simply not work.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • speedhb90 Profile Picture
    26 on at

    What a pity and there is no trick that can be done? Even if officially it does not let you do it

  • Verified answer
    Pavel_NaNoi Profile Picture
    1,074 on at

    Just run a Powershell script instead, here you go, put this after your move mouse action, this will move +0.7 in the x direction relative to current position of your mouse. (Literally just copy paste this code into PAD, it will make the action for you)

     

    Scripting.RunPowershellScript.RunPowershellScript Script: $'''Add-Type -AssemblyName System.Windows.Forms
    $POSITION = [Windows.Forms.Cursor]::Position
    $POSITION.x += 0.7
    $POSITION.y += 0
    [Windows.Forms.Cursor]::Position = $POSITION''' ScriptOutput=> PowershellOutput

     

     

    *Credit to this page for the script https://techexpert.tips/powershell/powershell-moving-mouse-automatically/

  • speedhb90 Profile Picture
    26 on at

    Thank you very much, you have helped me a lot

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard