Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Get text string from keyboard

If you have a question or need help, this is the place to be.
Post Reply
matejdro
Posts: 38
Joined: Wed Jul 21, 2010 9:58 am

Get text string from keyboard

Post by matejdro »

Is there a good way to get text string for keyboard?

Lets say certain action would trigger "typing" mode. Until I press enter, all entered text would be stored into python variable (maybe payload?). Some sort of dialog with text box would be fine too.
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: Get text string from keyboard

Post by kkl »

I'm no Python programmer, but this Python Command should do what you're asking:

eg.globals.string_input = raw_input("Enter text: ")
matejdro
Posts: 38
Joined: Wed Jul 21, 2010 9:58 am

Re: Get text string from keyboard

Post by matejdro »

Wow that was simple one, thanks a lot!
Post Reply