How do I check what the user is typing on keyboard?

Get help using Construct 2

Post » Thu Feb 23, 2017 7:59 pm

hi in my app i have the iframe object who just show the web.

HOW can i know with text object or another plugin, what the user is typing?

i want t do this, evrytime user is typing something inside the iframe, the url or word is copied and pasted into the txt object.

how can i achive that?

thanks
B
37
S
15
G
7
Posts: 1,681
Reputation: 9,614

Post » Thu Feb 23, 2017 8:34 pm

With the TextBox object you can use the "on text Changed" condition in the Event Editor.
B
9
S
3
G
4
Posts: 58
Reputation: 2,799

Post » Thu Feb 23, 2017 8:41 pm

i cant achive that trying now :s
B
37
S
15
G
7
Posts: 1,681
Reputation: 9,614

Post » Thu Feb 23, 2017 8:58 pm

i mean, the user is typing something inside the iframe, the iframe load google.com at the start of layout.

HOW to copy what the user is typing inside the TextBox object???
B
37
S
15
G
7
Posts: 1,681
Reputation: 9,614

Post » Fri Feb 24, 2017 1:12 pm

can someone help to achieve this?
B
37
S
15
G
7
Posts: 1,681
Reputation: 9,614

Post » Fri Feb 24, 2017 1:19 pm

keyboard object : condition on any key pressed -> check the LastKeyCode expression
Image Image
B
25
S
14
G
136
Posts: 876
Reputation: 71,005

Post » Fri Feb 24, 2017 2:48 pm

where i can find the expression "check the LastKeyCode expression" ??
B
37
S
15
G
7
Posts: 1,681
Reputation: 9,614

Post » Fri Feb 24, 2017 6:45 pm

can someone help?
B
37
S
15
G
7
Posts: 1,681
Reputation: 9,614

Post » Sat Feb 25, 2017 12:43 am

LastKeyCode is an expression of keyboard object...
https://www.scirra.com/manual/113/keyboard
Image Image
B
25
S
14
G
136
Posts: 876
Reputation: 71,005

Post » Sat Feb 25, 2017 12:58 am

on iframe fokus? ;)
I may be wrong... but I think this can not be achieved ...
B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Next

Return to How do I....?

Who is online

Users browsing this forum: BackendFreak, brunopalermo, busydude and 28 guests