Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 6M5F76XPVJDxuMtXInPqTv
Power Automate - Power Automate Desktop
Unanswered

clipboard change as event in order to automatically activate my procedure

Like (0) ShareShare
ReportReport
Posted on 5 Nov 2021 11:22:18 by 2

Bonjour

 

I want to automatically copy to Excel file new content of clipboard each time there is a new "data" into the windows clipboard

 

My procedure works perfectly to copy new content to the right cell to Excel, but I can't find the solution to automate the process 

 

Each time when the event    "new data detected in windows clipboard"    then   "activate automatically my procedure"

 

Is there a function that will execute procedure when the event "new data added in clipboard" is detected ???

 

thanks for your help

  • Alain_D Profile Picture
    2 on 10 Nov 2021 at 13:02:41
    Re: clipboard change as event in order to automatically activate my procedure

    Hello

     

    sorry I havent had any time with my new windows pc after 4 years with android

     

    tasker on android allow to test a change on android var event to trigger a process depending on the test

     

    i will test it later as soon......with your solution....

     

    thanks a lot

     

  • MichaelAnnis Profile Picture
    5,721 Super User 2025 Season 1 on 05 Nov 2021 at 14:16:42
    Re: clipboard change as event in order to automatically activate my procedure

    I agree with Henrik.  That was the original answer I had, but have two more options below.  If you want to have a PAD constantly running, you could have a loop like this:

    • Set %PreviousClipboardText% to "Never_gonna_see_this_text"
    • Set %IndexRow% to 1
    • Open Excel (whatever file you want, or a new one)
    • Loop 1 to 999999 increment of 1
      • Get Clipboard Text to %ClipboardText%
      • If %ClipboardText% does not equal %PreviousText%
        • Write to Excel %ClipboardText% to %ExcelInstance% at Column A, Row %IndexRow%
        • Set %IndexRow% to %IndexRow + 1%
      • End (IF)
    • End (Loop)

     

    Alternatively, this might be more effective:

     

    Create the same loop as above, but after Set %IndexRow% to %IndexRow + 1%, have a message box that you simply have to click OK.  This message box would stay on top of everything you are working on, and you simply would hit OK to activate the next loop.  So instead of copy here, go to excel, paste, go back to what I was doing, copy again...it would just be copy, click OK, copy, click OK.  That way, you are dictating when there is something to copy, and you don't have PAD just sitting in this loop, it will be paused between each time you click OK.

     

    Lastly, you may be able to change the pause/go hotkey for the loop.  If you can change that to Control + C, and Windows still picks up the Copy command, you could be telling it to do both at the same time.  You would immediately copy, and PAD would start another loop.  For this method, I would put a pause command where I suggested putting the message box.

     

    Hope one of these work for you.  Best of luck!

  • Henrik_M Profile Picture
    2,006 Super User 2024 Season 1 on 05 Nov 2021 at 13:31:52
    Re: clipboard change as event in order to automatically activate my procedure

    No, that sounds impossible.

     

    Unless you want to constantly have a desktop flow running in a loop, where it checks the clipboard content...

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 18 Super User 2025 Season 1

#2
Nived_Nambiar Profile Picture

Nived_Nambiar 10 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 6

Overall leaderboard
Loading started