I had little fun today playing around with hotkeys.
And I found out the structure pretty fast, you can use it to read all existed hotkey but for what use?
So this program shows you how you can use a hotkey for saying message use item on your self use item with crosshair etcetc.
What this do is that it will create a hotkey temporally and execute it and restores it again.
[code=vbnet]
Dim h As New Hotkey
h.ItemId = 268 'mana
h.UseType = HotkeyUsetype.Onself
Sendhotkey(h)
Dim h As New Hotkey
h.Message = "Hello this is nice!"
If CheckBox1.Checked Then
h.SendAuto = 1
Else
h.SendAuto = 0
End If
Sendhotkey(h)
Dim h As New Hotkey
h.ItemId = 3031
h.UseType = HotkeyUsetype.WithCrosshair
Sendhotkey(h)
[/code]
For those who do not want to download here is the addresses(9.1)
[code=vbnet]
Dim HotkeyObjectStart As UInteger = &H829600
Dim HotkeySendAutostart As UInteger = &H8295B4
Dim HotkeyUseTypeStart As UInteger = &H829518
Dim HotkeyTextStart As UInteger = &H8270E8
Public Enum HotkeyUsetype
Onself = 2
OnTarget = 1
WithCrosshair = 0
End Enum
[/code]
And yes this is working for xp vista and seven users
UPDATE!!
Now you can use this to heal your self. check the image below.
The program is not tested to 100%, I wrote it pretty fast so.