# get text from windows clipboard?

**URL:** <https://forums.unrealengine.com/t/get-text-from-windows-clipboard/77789>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [November 7, 2016, 11:14am UTC](https://forums.unrealengine.com/t/get-text-from-windows-clipboard/77789 "2016-11-07T11:14:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2c124cb81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2c124cb81](https://forums.unrealengine.com/u/anonymous_user_2c124cb81)\
**Post date:** [November 7, 2016, 11:14am UTC](https://forums.unrealengine.com/t/get-text-from-windows-clipboard/77789/1 "2016-11-07T11:14:32Z")

</div>

Hi,  
Is there any way that I can get the text that I’ve copied to clipboard into the game? I’d like to place the copied text from the clipboard in a string variable.

Thanks.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 7, 2016, 11:43am UTC](https://forums.unrealengine.com/t/get-text-from-windows-clipboard/77789/2 "2016-11-07T11:43:16Z")

</div>

UMG’s TextBox can handle it during run-time, it has an _OnTextCommitted_ event which you use to store your text.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2c124cb81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2c124cb81](https://forums.unrealengine.com/u/anonymous_user_2c124cb81)\
**Post date:** [November 9, 2016, 8:35am UTC](https://forums.unrealengine.com/t/get-text-from-windows-clipboard/77789/3 "2016-11-09T08:35:23Z")

</div>

Could you explain a bit.

What I’m wanting is, say I’m working in notepad.exe and I use Ctrl+C, so the text I’ve copied to clipboard while I’m windows explorer. Then I would like to get that text pasted into a variable. Do I just use OnTextCommitted event?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 9, 2016, 8:44am UTC](https://forums.unrealengine.com/t/get-text-from-windows-clipboard/77789/4 "2016-11-09T08:44:23Z")

</div>

I assumed you need to do it \*while \*the game is running, is that right? _OnTextCommitted_ should work.  
Create a text variable in your widget and have the event set it:

 ![Untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/5/d5384c466e436f01d1d3ca0940d83512268f33b2.png)

---

<div class="post-metadata">

**Author:** ![MagicBots](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MagicBots](https://forums.unrealengine.com/u/MagicBots)\
**Post date:** [October 31, 2019, 2:44am UTC](https://forums.unrealengine.com/t/get-text-from-windows-clipboard/77789/5 "2019-10-31T02:44:28Z")

</div>

Looks like there is also clipboarCopy and clipboardPaste here:  
[https://docs.unrealengine.com/en-US/API/Runtime/ApplicationCore/GenericPlatform/FGenericPlatformApplicationMisc/index.html](https://docs.unrealengine.com/en-US/API/Runtime/ApplicationCore/GenericPlatform/FGenericPlatformApplicationMisc/index.html)

---

<div class="post-metadata">

**Author:** ![ShadowBr0kerz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shadowbr0kerz/32/1201558_2.png) [@ShadowBr0kerz](https://forums.unrealengine.com/u/ShadowBr0kerz)\
**Post date:** [October 5, 2026, 9:10pm UTC](https://forums.unrealengine.com/t/get-text-from-windows-clipboard/77789/6 "2026-10-05T21:10:23Z")

</div>

OnTextCommitted only fires for text typed into that box, it wont see a Ctrl+C you did in notepad. for notepad → game you need to read the OS clipboard directly, which is FPlatformApplicationMisc::ClipboardPaste in C++.

in blueprint the direct version is a paste node returning a string. check Has Clipboard Text first so you dont parse an empty string when the clipboard holds an image or nothing. Runtime Clipboard Utility, a Blueprint clipboard plugin for Unreal Engine 5, has those three nodes (Copy, Paste, Has Clipboard Text), free, UE 5.0-5.8: [Runtime Clipboard Utility — Free Copy & Paste Text Nodes for Blueprints (UE5) | Fab](https://www.fab.com/listings/56930e3f-779a-4ddb-a215-c362787b65b9)
