lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > Lua Programming Help (L)

Reply
Thread Tools Display Modes
  #1  
Unread 09-12-2010, 02:36 AM
MrJackdaw's Avatar
MrJackdaw MrJackdaw is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2009
Location: Lancaster, England
Posts: 249
Key maps

Is there a simple command for the keymaps?

I want a plugin I am writing to sort the packs to fire when I hit shift-b, but have no idea how to trap the 'b' key. SetWantsKeyUpdates first obviously, but then?
Reply With Quote
  #2  
Unread 09-12-2010, 09:21 PM
Pengoros Pengoros is offline
The Unscathed
Interface Author - Click to view interfaces
 
Join Date: Sep 2010
Posts: 15
Quote:
Originally Posted by MrJackdaw
Is there a simple command for the keymaps?

I want a plugin I am writing to sort the packs to fire when I hit shift-b, but have no idea how to trap the 'b' key. SetWantsKeyUpdates first obviously, but then?
I'm not aware of any key to code mapping files being available. If I want to find out a key code I just turn the SetWantsKeyUpdates to true and then start printing out args.Action in the KeyDown method to figure out what the code is.
Reply With Quote
  #3  
Unread 09-13-2010, 12:22 AM
MrJackdaw's Avatar
MrJackdaw MrJackdaw is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2009
Location: Lancaster, England
Posts: 249
Thanks, will do!
Reply With Quote
  #4  
Unread 09-19-2010, 08:23 PM
Digital_Utopia's Avatar
Digital_Utopia Digital_Utopia is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Sep 2010
Posts: 207
Send a message via MSN to Digital_Utopia Send a message via Yahoo to Digital_Utopia
KeyDown args doesn't actually return a keycode, but rather an action. Bad news is that it sucks for those of us who are trying to write keyboard shortcuts, but good news is we don't have to worry about what the user has their keybindings set as when we want to react to them doing something.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Known Key Combinations to Unlock the UI Positioning Cairenn Interface Help (L) 5 03-13-2012 10:30 AM
LOTRO Beta Key Giveaway Dolby News 0 07-14-2010 01:16 PM
Maps Interface? Isinofre Interface Requests (L) 2 04-17-2007 09:25 PM


All times are GMT -5. The time now is 05:47 PM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui