Scripts / Testing for the Carriage Return Key

Author
Message
TazMan
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 20th Jan 2011
Location: Worldwide Web
Posted: 14th Jan 2016 12:37
High everyone. I have a script that would benefit from me being able to detect if the 'Carriage Return' key has been pressed. I have tried detecting it with the global g_InKey using "cr", "CR", "lf" and "LF" combinations but non of them work. I even tried detecting the string "return" but to no avail.

Any help would be appreciated. Thanks
HP Pavilion Laptop, AMD A8-4555M APU with Radeon(tm) Graphics HD Graphics 1.6GHz, 8GB Memory, 64 Bit Operating System (Windows 10), 1 TB Hard Drive.

I've got something to say - It's better to burn out than fade away.
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 14th Jan 2016 12:38
use GetScancode()
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
TazMan
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 20th Jan 2011
Location: Worldwide Web
Posted: 15th Jan 2016 10:57
Thanks smallg, that works perfectly. I should have thought to ask you directly I suppose.
HP Pavilion Laptop, AMD A8-4555M APU with Radeon(tm) Graphics HD Graphics 1.6GHz, 8GB Memory, 64 Bit Operating System (Windows 10), 1 TB Hard Drive.

I've got something to say - It's better to burn out than fade away.

Login to post a reply

Server time is: 2024-12-22 12:46:25
Your offset time is: 2024-12-22 12:46:25