Claw retargetting is awesome. But tiring. So instead of damaging my fingers and my keyboard keys, i created a very small code to retarget.
Here is the meat of the code, you need a little background on how autoit works but nonetheless, all the code you need is here ;0
Update: You DO NOT NEED A BYPASS for this to work
Requirements:
You need to set "X" as bind to "Select character"
You need to put normal atk (or anything that will cause claw attack) to slot "2" of your skill slots
OR you could modify the code to suit your needs
Note: modify the attack sleep values based on your retarget frequency (retarget after 2 hits or 1 hit)
Code:
Global $Toggle
HotKeySet("{PAUSE}", "Retarget")
HotKeySet("{ESC}", "Terminate")
AutoItSetOption("SendKeyDownDelay", 10)
While 1
Sleep(100)
WEnd
Func Retarget()
$Toggle = Not $Toggle
while $Toggle
if WinActive("CABAL", "") then
sendkey("x")
sleep(100)
sendkey("z")
sleep(100)
sendkey("2")
sleep(200)
endif
Tooltip("Paused",0,0)
sleep(100)
WEnd
Tooltip("Retarget OFF",0,0)
EndFunc ;==>Terminate
Func Terminate()
Exit 0
EndFunc ;==>Terminate
Func SendKey($keys)
$length = stringlen($keys)
for $i=1 To $length
$chr = stringmid($keys,$i,1)
send($chr)
ToolTip("Sending key to window: " & $keys, 0,0)
;sleep(150)
next
EndFunc
1. Why do I need sendkey function? Why not use send?
- I made a custom send function to insert codes between characters. I could add another 1 sec delay between the characters being sent and use it for other purposes (HINT: auto log-in, debugging, etc)
2. How to invoke the program?
- Compile it to make an exe. PAUSE key is the one used in the code above.
3. How to stop retargetting?
- Click away from cabal window - this is a temporary pause. Retargetting resumes after you click back to cabal window.
To turn off retargetting, hit PAUSE key.
To stop the program completely, hit ESCAPE key.
4. Your code is useles.
- I don't care. It is useful for me though. Someone might benefit from it. No flaming please
5. Does this work on normal cabal? (Actually I find this question irrelevant...)
Yes it works on all versions that supports key bind.
Note that this is only a replacement of the grueling task of pressing 2 keys (or 3 keys) repeatedly. Save yourself from damaging your fingers.
Thanks are always appreciated






