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 » Scripters
Home Search
 

Re: How does Quenty detect Special Keys?

Previous Thread :: Next Thread 
databrain is not online. databrain
Joined: 01 Jan 2013
Total Posts: 3342
23 Jul 2014 10:45 PM
Such as Enum.SpecialKey.ChatHotKey

In Whatever Floats Your Boat, I see him use custom chat, with a custom chat bar.

How can I detect when someone presses "/" ?
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
23 Jul 2014 10:54 PM
If I recall keyup has no reserves. He might be using the InputChanged event of the UserInputService
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
23 Jul 2014 10:55 PM
Enum.KeyCode.LeftControl

InputObject.KeyCode

UserInputService.InputBegan
Report Abuse
As8D is not online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
24 Jul 2014 05:00 AM
Hm... though to type /, I need to hit Shift, then 7. Then what about people with e.g. hotkeys or just having to click 1 button to type /? If they hit Shift + 7, this method will fail. Though that solution is used in Athenaeum of Ages.

-As, we shall all commence at this fall. #ThisFall.
Report Abuse
oseday is not online. oseday
Joined: 27 Aug 2008
Total Posts: 1308
24 Jul 2014 09:14 AM
I hate it
every
stupid
single
time
to hit shift + 7 it irritates me so much.

On topic: Input service
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
24 Jul 2014 10:01 AM
@oseday: Fixed that issue! :D
Report Abuse
TheGrayHat is not online. TheGrayHat
Joined: 02 May 2014
Total Posts: 523
24 Jul 2014 10:06 AM
@OP

Observe them while they are pressing keys on the keyboard, and note when they press the '/' key.
Report Abuse
Temppeliherra is not online. Temppeliherra
Joined: 24 May 2014
Total Posts: 259
24 Jul 2014 12:52 PM
Might be a bit off topic, but I loved the old chat bar where I could press - instead of SHIFT + 7 (which is where the / button is located on my keyboard)

This is a signature. Recommended username: ExcellentTemppeliherra
Report Abuse
databrain is not online. databrain
Joined: 01 Jan 2013
Total Posts: 3342
24 Jul 2014 12:58 PM
Thank you Notunknown, It works wonderfully. Also, what's this about shift + 7?
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
24 Jul 2014 12:59 PM
On some non-standard keyboards, Shift+7 is the "/" key, but Shift+7 will create two events for Shift and 7 instead of Shift and /.
Report Abuse
oseday is not online. oseday
Joined: 27 Aug 2008
Total Posts: 1308
25 Jul 2014 03:43 AM
Notun, what do you mean?
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
25 Jul 2014 09:08 AM
@oseday: On my keyboard, "!" is Shift+1 (I am assuming it is for you, too) which means you cannot get when a player presses "!" without testing for Shift. On some keyboards "/" is Shift + 7, meaning you cannot get when a player presses it (Which makes chatting trickier)
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
25 Jul 2014 09:20 AM
Hold shift scripts suck because when you hold shift, un-focus from RPB, let go of shift, and refocus, shift is still being held! :(
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
25 Jul 2014 09:20 AM
Same with all keys (not only shift) D:
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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