generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Detecting the "/" Key

Previous Thread :: Next Thread 
duckwit is not online. duckwit
Joined: 08 Aug 2008
Total Posts: 1310
15 Jan 2014 11:10 AM
I want to detect pressing down of the "/" key for use with a custom chat gui.
I have disabled the regular chat using setCoreGuiEnabled("Chat",false) and have registered for the KeyDown event on the mouse.
I am using inputKey:byte() == 47 (--"/" key) to check for the slash, but the KeyDown event is not fired with this key is pushed.

How do other games receive this key?
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
15 Jan 2014 11:37 AM
"/" is reserved, I don't think it's possible to use.
Report Abuse
duckwit is not online. duckwit
Joined: 08 Aug 2008
Total Posts: 1310
15 Jan 2014 11:38 AM
The new Custom Chat Gui in Apocalypse Rising uses the "/" to trigger typing into the chat box. Have you look, if you will. Either they gave them special developer access, they found a hack, or there's just a different way to do it.
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
15 Jan 2014 11:39 AM
Oh I haven't gone to Apocalypse Rising in a while, my bad. I could never get "/" to work in-game though, just in test mode.
Report Abuse
duckwit is not online. duckwit
Joined: 08 Aug 2008
Total Posts: 1310
15 Jan 2014 11:42 AM
There must be a way to do it... but the event doesn't even fire when the key is pushed.
Report Abuse
DataStore is not online. DataStore
Joined: 07 Feb 2012
Total Posts: 8540
15 Jan 2014 11:57 AM
You can detect it if you use the "KeyUp" event, but there will be a very small delay.
Report Abuse
duckwit is not online. duckwit
Joined: 08 Aug 2008
Total Posts: 1310
15 Jan 2014 11:58 AM
Oh! Thanks for that, @DataStore.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image