I think he means how to make a hotkey function in VB6.0. I have some examples for you I will post them later. Okay This is how to do it VB6.0:
1. Start a new project in VB6.0.
2. Create two timers on the form (Timer1 and Timer2).
3. Select Timer1 and go to the properties and set 1 at the interval.
4. Now here comes the hard part, double click on the Timer1. A new window should open write the following lines:
Private Sub Timer1_Timer()
If GetKeyPress(vbKey1) Then
Timer2.Interval = 1
End If
End Sub
If you have more timer e.g more Timers you just can add them like I did in the code below (you also need to add the timer on your form like you did in step 2). It should look like this:
Private Sub Timer1_Timer()
If GetKeyPress(vbKey1) Then
Timer2.Interval = 1
End If
If GetKeyPress(vbKey2) Then
Timer3.Interval = 1
End If
If GetKeyPress(vbKey3) Then
Timer4.Interval = 1
End If
End Sub
'Interval value 1 will freeze the option, like it will keep pushing the button automatically. If you want to reset it, like you want
'to have a RESET OPTIONS function, the interval of the timer needs to be 0. So we do it like this:
If GetKeyPress(vbKey9) Then
Timer2.Interval = 0
Timer3.Interval = 0
Timer4.Interval = 0
End If
5. We are done with the hotkeys now, now we need to add something to happend when the hotkeys are pressed. Example when user pushed the hotkey some new value needs to be written in an adress. So we need to use Timer2 which is set to the button "1". Double click on Timer2 and simply add your code to it, so here is an example:
Private Sub Timer2_Timer()
Call WriteAByte("Adssantado Trilogy. Book One", &H403BE8, &H90)
End Sub
What does this code do? It simply activates the piece of code when the button is pressed and it freezes it, thats why I'm using 1 for the Timer interval.
As for the hoykeys, Im using simply 1, 2, 3 etc. Just an example. vbKey1 stands for 1, its really simple. Check this link out for the other key constants in VB6.0:
http://msdn.microsof*****m/en-us/libr...(v=vs.80).aspx