wz bot in Java (thoughts only) :)

09/11/2009 06:06 botas12#1
so yesterday I was thinking how to do it...
and I got these results:

Problem: you cannot get pixel color from AL window (always will get 0,0,0 (RGB) if I remember correctly)
Way around: use robot* to get ss and read pixel in that ss

Problem: u cannot send keystrokes using Java to AL even
Way around: use onscreen keyboard (integrated in windows and can send keystrokes) and use robot* to move the mouse and click it

Problem: using ss u need to know position of AL window + your screen resolution to get the pixel u need
Way around 1: use static positions (i.e. run AL in windows mode and don't move it... if your screen res is xxx then mob life will be at xxx and so on for different resolutions)
Way around 2: use timer to set how long it will take to kill mob and after that time ends just switch to another without checking if this one is dead) - this one is stupid but easy to implement :)

*robot - Java class

and some other problems in e.g. how to stop bot (it will move mouse to click onscreen keyboard and Java is not listening for pressed key if window is not selected) :)

what is good that it's almost impossible to detect (remember that Java is running in JVM)- so this bot would be for ever :) also as far as I know it's impossible to create key-logger using Java - everyone is safe :)

what is bad: Java :D

that do you think? who wants to start coding :P
09/11/2009 09:44 ACE-ppc#2
Quote:
Originally Posted by botas12 View Post
so yesterday I was thinking how to do it...
and I got these results:

Problem: you cannot get pixel color from AL window (always will get 0,0,0 (RGB) if I remember correctly)
Way around: use robot* to get ss and read pixel in that ss
U can get SS from the Window just like bevore.

Quote:
Originally Posted by botas12 View Post
Problem: u cannot send keystrokes using Java to AL even
Way around: use onscreen keyboard (integrated in windows and can send keystrokes) and use robot* to move the mouse and click it
No need to move the mouse, u can send messages to the Controls of the osk directly.

The biggest problem for now is the timing ... because the lagg.

And for a Membot creation we need the pointers or a way to get cheatengine to work. Someone succeeded with it ?
09/21/2009 21:25 tassadar_de#3
Quote:
Originally Posted by botas12 View Post
so yesterday I was thinking how to do it...
and I got these results:

Problem: you cannot get pixel color from AL window (always will get 0,0,0 (RGB) if I remember correctly)
Way around: use robot* to get ss and read pixel in that ss

Problem: u cannot send keystrokes using Java to AL even
Way around: use onscreen keyboard (integrated in windows and can send keystrokes) and use robot* to move the mouse and click it

Problem: using ss u need to know position of AL window + your screen resolution to get the pixel u need
Way around 1: use static positions (i.e. run AL in windows mode and don't move it... if your screen res is xxx then mob life will be at xxx and so on for different resolutions)
Way around 2: use timer to set how long it will take to kill mob and after that time ends just switch to another without checking if this one is dead) - this one is stupid but easy to implement :)

*robot - Java class

and some other problems in e.g. how to stop bot (it will move mouse to click onscreen keyboard and Java is not listening for pressed key if window is not selected) :)

what is good that it's almost impossible to detect (remember that Java is running in JVM)- so this bot would be for ever :) also as far as I know it's impossible to create key-logger using Java - everyone is safe :)

what is bad: Java :D

that do you think? who wants to start coding :P
one word... (ok 3 in fact :D) JNI. And all you said above will be possible... even a key logger :D.
09/22/2009 08:11 Newbb#4
true, but why worry about a keylogger if u can just scan the file?