# Flowgraph reading keystrokes during execution

**URL:** <https://www.ruby-forum.com/t/flowgraph-reading-keystrokes-during-execution/240061>\
**Category:** GNU Radio\
**Created:** [March 26, 2014, 4:28am UTC](https://www.ruby-forum.com/t/flowgraph-reading-keystrokes-during-execution/240061 "2014-03-26T04:28:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [March 26, 2014, 4:28am UTC](https://www.ruby-forum.com/t/flowgraph-reading-keystrokes-during-execution/240061/1 "2014-03-26T04:28:44Z")

</div>

Dear Sir,

I am thinking of building simple chat application using gnuradio.  
PC#1 connecting to USRP#1, will send text message to PC#2 via USRP#2.  
The question is, how to get the user keystrokes from the flowgraph at  
PC#1 ?

I am building the flowgraphs using GRC (Companion).  
I guess I need to use something similar to WX GUI Slider, that get the  
user keystrokes instead of the slider position, into the flowgraph,  
during its execution.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [March 26, 2014, 10:55am UTC](https://www.ruby-forum.com/t/flowgraph-reading-keystrokes-during-execution/240061/2 "2014-03-26T10:55:55Z")

</div>

On 03/26/2014 04:26 AM, Activecat wrote:

> Dear Sir,
> 
> I am thinking of building simple chat application using gnuradio.  
> PC#1 connecting to USRP#1, will send text message to PC#2 via USRP#2.  
> The question is, how to get the user keystrokes from the flowgraph at PC#1 ?
> 
> I am building the flowgraphs using GRC (Companion).  
> I guess I need to use something similar to WX GUI Slider, that get the  
> user keystrokes instead of the slider position, into the flowgraph,  
> during its execution.

Sure, you can add another widget to do that. You probably want to catch  
an event from QT and turn that into a message, then post that  
asynchronously.

M

---

<div class="post-metadata">

**Author:** ![activecat\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c57346/32.png) [@activecat\_k](https://www.ruby-forum.com/u/activecat_k)\
**Post date:** [March 26, 2014, 12:08pm UTC](https://www.ruby-forum.com/t/flowgraph-reading-keystrokes-during-execution/240061/3 "2014-03-26T12:08:29Z")

</div>

Thank you.
