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

Get help using Construct 2

Post » Sat Feb 25, 2017 1:01 am

good spot @korbaach but it should work if the iframe is a part of his c2 app?
Image Image
B
28
S
17
G
160
Posts: 894
Reputation: 83,261

Post » Sat Feb 25, 2017 7:52 am

i cant do it with on iframe focus :s
B
44
S
18
G
7
Posts: 1,819
Reputation: 10,384

Post » Sat Feb 25, 2017 7:59 am

i tried this:
on any key pressed+ iframe is focused > text > set text Keyboard.StringFromKeyCode(keyboard.LastKeyCode)

and:

on iframe is focused > text > set text Keyboard.StringFromKeyCode(keyboard.LastKeyCode)

and:

on any key pressed > text > set text Keyboard.StringFromKeyCode(keyboard.LastKeyCode)

and:

on iframe is focused > text > set text keyboard.LastKeyCode

but nothing works...

can someone try?
B
44
S
18
G
7
Posts: 1,819
Reputation: 10,384

Post » Sat Feb 25, 2017 6:28 pm

trying stuffs but nothign works :s
B
44
S
18
G
7
Posts: 1,819
Reputation: 10,384

Previous

Return to How do I....?

Who is online

Users browsing this forum: JoniArtha and 2 guests