Skip to main content
Participating Frequently
April 25, 2023
Question

Copy to system clipboard

  • April 25, 2023
  • 1 reply
  • 659 views

Hello Community, 

 

I got two software simulation slides that I would like to do the following with:

 

Slide 1: When I click on a button that says Copy, I want a specific string of text to be copied to the OS clipboard of the learner (Windows OS). 

 

Slide 2: When I press Ctrl+V, I want the text that was copied from slide 1 to be pasted. 

 

My question is around slide 1. How do I create a button that will copy predefined text into the system clipboard such that I can paste that text into the text entry box on Slide 2?

 

I assume it make be some kind of advanced action, but don't know where to start or if what I am looking to do is evening possible. Thanks in advance for any insights!

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    April 27, 2023

    Just wanted to follow-up to see if anyone has any suggestions on the above. Thanks!

    Lilybiri
    Legend
    April 27, 2023

    No sorry, this is not available in Captivate. If you have the text in a text entry box or a Scrolling text interaction it exists as value for the associated variable. Such a variable can be inserted anywhere using the X button in the Character part. But you cannot let the learner select whatever text and copy/paste it.

    Why do you want this? Maybe if you explain the goal someone could offer you a workflow which is completely different but will realize the goal?

     

    Participating Frequently
    May 16, 2023

    Thanks for the reply Lilybiri! 

     

    To answer you question regarding why I would want to do this, I wanted to simulate a scenario where a user is on a web page that has a button next to an API password. That button copies the password. The user clicks that button which displays the word 'copied'. The user then pastes that password into a TEB on a terminal screen. Since the user needs to paste the copied password, I was hoping that when the user clicks the copy button, that it could store a string (the password) into their clipboard so that they could paste that into the TEB. I just wanted to simulate the real workflow for the software I captured as a simulation. 

     

    I hope I explained clearly. I am open to suggestions if perhaps this could be accomplished in some other way. 

     

    Thanks in advance!