sruon/ffxivlib — pull request #24 by kurikaesu (2014-03-03 09:15:02+00:00)
Title: Updates to reflect 2.16 - hotbar routines

For the hotbar, here's a snippet (presses the cure hotkey if you have cure on a hotkey):

```
actionList = (List)lib.GetActions ();
allSkills = new Dictionary ();
KeyBinds1 = new List(lib.GetKeyBinds (0));

string actionName = "";
foreach (ffxivlib.Action a in actionList)
{
actionName = ResourceParser.GetActionName (a.Id);
allSkills [actionName] = a;
}

if (allSkills.ContainsKey("Cure"))
{
foreach (KeyBind k in KeyBinds1)
{
if (k.actionId == allSkills["Cure"].Id)
{
SendKeyInput.VKKeys key = (SendKeyInput.VKKeys)k.keyBindString[0];
SendKeyInput.GetInstance().SendKeyPress(key);
}
}
}
```

Naturally it's just an example and I've omitted a lot of code, but you get the gist ^^.