superman1478
Apprentice
I have an auto alcher. Sometimes i lagg and it starts clicking use yew longbow on yew longbow. To solve that problem i had my program press the F6 key every almost every 500 alchs. To do so i used:
label3.caption is uped by 1 every 2 clicks.
Some people need the key pressed more frequently then that.
If i keep adding if statements i'm afraid that the program will slow down.
Anyone got any ideas on how to shorten the code Or anything?
label3.caption is uped by 1 every 2 clicks.
Code:
Private Sub label3_Change()
If Label3.Caption = 490 Then
SendKeys "{F6}"
End If
If Label3.Caption = 1003 Then
SendKeys "{F6}"
End If
If Label3.Caption = 1520 Then
SendKeys "{F6}"
End If
If Label3.Caption = 2002 Then
SendKeys "{F6}"
End If
If Label3.Caption = 2508 Then
SendKeys "{F6}"
End If
If Label3.Caption = 3009 Then
SendKeys "{F6}"
End If
End Sub
If i keep adding if statements i'm afraid that the program will slow down.
Anyone got any ideas on how to shorten the code Or anything?


