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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / clipboard change as ev...
Power Automate
Unanswered

clipboard change as event in order to automatically activate my procedure

(0) ShareShare
ReportReport
Posted on 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

I have the same question (0)
  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    No, that sounds impossible.

     

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

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    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!

  • Alain_D Profile Picture
    2 on at

    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

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard