Ok so you have just made a hack and now you want to set hotkeys? Ok i will use stamina for example:
Code:
Private Sub Timer1_Timer()
Call WriteALong("Warrock", &H7F2B34, 1120403456)
End Sub
So this should be your stamina code and to set a hotkey to it you need to make another timer with an interval of 1, now add this code:
Code:
Private Sub Timer2_Timer()
If GetKeyPress(vbKeyShift) Then
Call WriteALong("Warrock", &H7F2B34, 1120403456)
End If
End Sub
Shift is just an example, you can use any other key if you want put i would recommend shift. So basically you can use this same method for alot of other hacks like No Recoil/Spread etc, you just have to change the addresses, values and hotkeys. The good thing about this is it doesn't freeze your stamina it refills it, freezing values is one thing that can get detected in a hack. I hope this helped and i am sorry if someone has already made a tutorial like this.