# Interaction with computer program in Game

**URL:** <https://forums.unrealengine.com/t/interaction-with-computer-program-in-game/448030>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question, execute-command\
**Created:** [April 29, 2019, 6:41am UTC](https://forums.unrealengine.com/t/interaction-with-computer-program-in-game/448030 "2019-04-29T06:41:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fxmaker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fxmaker](https://forums.unrealengine.com/u/fxmaker)\
**Post date:** [April 29, 2019, 6:41am UTC](https://forums.unrealengine.com/t/interaction-with-computer-program-in-game/448030/1 "2019-04-29T06:41:24Z")

</div>

Hello,  
I would like to create a basic computer program (DOS format) in game, where the user will have to enter commands to run analyzes with a percentage that evolves in time for example, but I have no idea how I can do that with blueprints and widget ?  
Would anyone have an idea of how I can do that?  
Thank you

---

<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:** [April 29, 2019, 10:53am UTC](https://forums.unrealengine.com/t/interaction-with-computer-program-in-game/448030/2 "2019-04-29T10:53:31Z")

</div>

Sounds easy enough:

- editable box to enter commands, override _onCommited_ to get text once the user hits enter
- have a switcher to interpret the command (unless you’re planning on having 100s of commands)
- start an event timer and hook up its progress to a progress bar widget, use a text block that show the percentage value

---

<div class="post-metadata">

**Author:** ![fxmaker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fxmaker](https://forums.unrealengine.com/u/fxmaker)\
**Post date:** [April 29, 2019, 1:02pm UTC](https://forums.unrealengine.com/t/interaction-with-computer-program-in-game/448030/3 "2019-04-29T13:02:23Z")

</div>

Newest,

Thanks for your answer.  
I will try with the elements that you give me.

For information here is an example of what I wish graphically and when I enter the “help” command, the commandes lines below are scrolling up and wait for another command from the player.

 ![275490-sans-titre.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/e/19e2a68f32290b00bf664e704c21fb47d1419eb4.png)

---

<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:** [April 29, 2019, 9:42pm UTC](https://forums.unrealengine.com/t/interaction-with-computer-program-in-game/448030/4 "2019-04-29T21:42:17Z")

</div>

You could have each line be a separate widget and add them to a vertical box anchored to the bottom using an event timer to make the messages pop and push everything else up by one line. You can store the lines in an array and just iterate over the elements.

Another approach is to just use a single widget and append its text + some formatting - more fiddly, less flexible but more performant.

---

<div class="post-metadata">

**Author:** ![fxmaker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fxmaker](https://forums.unrealengine.com/u/fxmaker)\
**Post date:** [May 2, 2019, 7:09pm UTC](https://forums.unrealengine.com/t/interaction-with-computer-program-in-game/448030/5 "2019-05-02T19:09:49Z")

</div>

It’s a really good idea.  
Thanks for your answer.
