teamfe
Member
- Joined
 - Mar 26, 2011
 
- Messages
 - 68
 
- Reaction score
 - 2
 
Hello there! I'm trying to figure out how to cast a spell if a key is pressed for example cast polymorph on focus if i press the shift key. 
I've tried this code:
public void polymorph(object sender, KeyEventArgs e)
{
if (e.KeyData == Keys.Shift)
{
SpellManager.Cast(118, Me.FocusedUnit);
}
}
Or is it impossible to use a function like this with HB :/?
Thanks in advance //teamfe
				
			I've tried this code:
public void polymorph(object sender, KeyEventArgs e)
{
if (e.KeyData == Keys.Shift)
{
SpellManager.Cast(118, Me.FocusedUnit);
}
}
Or is it impossible to use a function like this with HB :/?
Thanks in advance //teamfe






