1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Click type: Number key

Discussion in 'Skript' started by SoMuchWessel, Nov 27, 2020.

Thread Status:
Not open for further replies.
  1. SoMuchWessel

    SoMuchWessel Active Member

    Joined:
    Apr 3, 2017
    Messages:
    147
    Likes Received:
    2
    Hey there,

    My question is very straight forward:


    Code (Text):
    1. on inventory click:
    2.     if click type is number key:
    How can i detect which number key was pressed?
     
  2. Marc

    Marc Active Member

    Joined:
    Nov 27, 2020
    Messages:
    94
    Likes Received:
    0
    Could you try and explain what you are trying to do?
    maybe we can find another solution
     
  3. acai

    acai Active Member

    Joined:
    Oct 23, 2020
    Messages:
    89
    Likes Received:
    1
    I do not think a number key, or anything other than left click can be detected as a click in the inventory. I believe the only packets sent to the server would be if a player clicks and drags an item into another slot in their inventory (with left clicking in two different spots), or if a player drops an item from their inventory (left clicking on item and clicking outside of inventory GUI. Others may be if a player scrolls items into their inventory from another GUI, if they may have MouseTweaks mod.
     
  4. Turb032

    Turb032 Active Member

    Joined:
    Jan 16, 2020
    Messages:
    109
    Likes Received:
    0
    i think there's no way to detect a keyboard key press, other then left-right click, and that's kinda sad
     
Thread Status:
Not open for further replies.

Share This Page

Loading...