that is strange. I personally haven't had this problem. What comes to mind for me is make sure all the shortcut keys are set to default. Meaning your "target next Monster" button is still set to "U".Quote:
if auto pot is on the bot, it wont click on mobs.
it makes me have to manually click on the mobs.
its like there is too much code going on for the bot to auto select the mob and pot at same time.
any tips to make the bot- auto pot, spam skills, and auto select the same time. with me being afk.
Quote:
Couple things to remember for everyone.
1. Always spam does NOT mean target
2. On Win 7 it seems to run slower
3. You might have set the target wrong on initial setup. ( empty startup file, save, and restart script )
4. I have noticed that i have to many gosubs for heals in the script. If i remove the ( gosub, heal ) in between each line its speeds up 5 times faster and seems to have no affect on heal delay. Will post it when i modify it.
5. If your computer is pron to screen freeze this will put more of a load on your computer so keep that in mind. I have slowed down the cycles and have improved that as best i can.
Yea i started that and realized not all checks are numerical. Would be easy enough to rename the variables but when they pull from the gui its taken literally and any numbers in a variable at that point are taken literally as well in autohotkey because you cant use the brackets when comparing.Quote:
You could try a for/next to run through all the checkboxes and have all that code only once would be alot faster... I think ahk has that?
[B]Dim ctrl As Control[/B]
[B]For Each[/B] ctrl In FormName.Controls [COLOR=Green]'Controls are everything on a form. Like labels, text box, checkbox etc.. .[/COLOR][B]
If[/B] [I]TypeOf [/I]ctrl Is [I]CheckBox[/I] and [I]ctrl.value[/I] >= 1 [B]then[/B][COLOR=Green] 'loops through checkboxes if it finds one enabled, the rest of this code ran[/COLOR]
[B]Select Case[/B] ctrl.name [COLOR=Green]'check the name of enabled box[/COLOR][B]
case[/B] Checkbox1[COLOR=Green] 'if the name is this, do that[/COLOR]
controlsend ,, 1, Dekaron,,[B]
case[/B] Checkbox2 [COLOR=Green]'etc[/COLOR]
controlsend ,, 2, Dekaron,,[B]
end select [/B]
sleep, %sleep% [COLOR=Green]'Since this code only run if its checkbox AND enabled only need to use it once[/COLOR]
gosub, pause[B]
End If
Next
[/B]
Not sure if their GUI sets up like an array or not. Will have to ask. Thank you for the input.Quote:
Well what I meant was like I will show in an example. This is how I did it in VB, not sure if there is a way in AHK, but in VB it was well worth the speed increase. I used some of your code as filler for the example.
Now this would work awesome in VB, not sure if you could make it work on AHK cuz I don't know AHK, but I'm just bored so there ya go something to think about.Code:[B]Dim ctrl As Control[/B] [B]For Each[/B] ctrl In FormName.Controls [COLOR=Green]'Controls are everything on a form. Like labels, text box, checkbox etc.. .[/COLOR][B] If[/B] [I]TypeOf [/I]ctrl Is [I]CheckBox[/I] and [I]ctrl.value[/I] >= 1 [B]then[/B][COLOR=Green] 'loops through checkboxes if it finds one enabled, the rest of this code ran[/COLOR] [B]Select Case[/B] ctrl.name [COLOR=Green]'check the name of enabled box[/COLOR][B] case[/B] Checkbox1[COLOR=Green] 'if the name is this, do that[/COLOR] controlsend ,, 1, Dekaron,,[B] case[/B] Checkbox2 [COLOR=Green]'etc[/COLOR] controlsend ,, 2, Dekaron,,[B] end select [/B] sleep, %sleep% [COLOR=Green]'Since this code only run if its checkbox AND enabled only need to use it once[/COLOR] gosub, pause[B] End If Next [/B]