1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Greetings Guest!!

    In order to combat SPAM on the forums, all users are required to have a minimum of 2 posts before they can submit links in any post or thread.

    Dismiss Notice

How to listen for a key being pressed in lua?

Discussion in 'UO Enhanced Client Discussion' started by Nalif, Feb 3, 2011.

  1. Nalif

    Nalif Journeyman
    Stratics Veteran

    Joined:
    Nov 30, 2006
    Messages:
    131
    Likes Received:
    0
    I have a button that does something when it's clicked by the left mouse button. I was to listen for a keypress ( alt ) and have that button do something else when alt is being held down. How can I do this?
     
  2. Pinco

    Pinco UOEC Modder
    Stratics Veteran Stratics Legend

    Joined:
    Jul 25, 2005
    Messages:
    5,675
    Likes Received:
    865
    it's all managed inside the client, there is a function but works only for hotbars and can't be modified.
     
  3. Nalif

    Nalif Journeyman
    Stratics Veteran

    Joined:
    Nov 30, 2006
    Messages:
    131
    Likes Received:
    0
    Pssh. That's lame. Atleast you saved me a lot of time :) Thanks!