ID:1607896
 
Keywords: extract, input, var
(See the best response by Metamorphman.)
Code:


Problem description:

Greetings,

I got a question. Is there a way to extract information from a input?

Like, When I press a button, it will extract the information from the input and put it in a var. Is that possible?
That's exactly what input does.
Best response
In case you're asking about input as in the interface element, you can use winget() to access the input's 'text' value. e.g.

client/verb/get_input_text()
var/v = winget(src,"input","text")


You can then use a library such as forum_account's keyboard library or use Dream Maker's built in macro editor to bind a key to a verb and trigger whatever behaviour it is you're looking for
In response to Metamorphman
Metamorphman wrote:
In case you're asking about input as in the interface element, you can use winget() to access the input's 'text' value. e.g.

> client/verb/get_input_text()
> var/v = winget(src,"input","text")
>

You can then use a library such as forum_account's keyboard library or use Dream Maker's built in macro editor to bind a key to a verb and trigger whatever behaviour it is you're looking for

This is exactly what I meant! Thanks! I understand it now.