I wrote my own program for this = / but not gona share it . . .
cause its a fairly big advantage in pvp . . . and as soon as i share it some ******* is gona start to write a new l2security.dll that will block it -_- . . . you can write your own . . . using simple API calls in C++ or even Visual Basic . . . =/
as for detecting your current cp and using that as a variable that is a bit more than what i would even bother doing . . . why not just buy 20000 Cp potions and spam them all day.