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
26
S
15
G
142
Posts: 881
Reputation: 74,060

Post » Sat Feb 25, 2017 7:52 am

i cant do it with on iframe focus :s
B
41
S
16
G
7
Posts: 1,750
Reputation: 9,963

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
41
S
16
G
7
Posts: 1,750
Reputation: 9,963

Post » Sat Feb 25, 2017 6:28 pm

trying stuffs but nothign works :s
B
41
S
16
G
7
Posts: 1,750
Reputation: 9,963

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests