Results 1 to 1 of 1
- 10-21-2011, 01:50 PM #1
Member
- Join Date
- Oct 2011
- Posts
- 5
- Rep Power
- 0
ROBOT Class help and hosting paradox
Hello guys I am anshul.....i am freak...i made a small program to just test it how it works on webapp....the program is below...
but the problem is that ...
i ran it on localhost it worked fine....but when i hosted it on internet with real ip......then give it to my freind ....he click on the link which
i gave him....it was like.....http://ip:8080/hack...on apache server.....there was a link on the page which runs through javabean
and the link was going to run this program...so the output must be on his pc but instead the programs output was on my screen,,,
how many times he click on that link the output cam on my screen or notepad rather than on his....
whats the deal with it...????
here it is
package Rob;
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.*;
public class Rob {
public void hack()
{
try
{
Robot robot = new Robot();
// Creates the delay of 5 sec so that you can open notepad before
// Robot start writting
robot.delay(5000);
robot.keyPress(KeyEvent.VK_H);
robot.keyPress(KeyEvent.VK_I);
robot.keyPress(KeyEvent.VK_SPACE);
robot.keyPress(KeyEvent.VK_I);
robot.keyPress(KeyEvent.VK_A);
robot.keyPress(KeyEvent.VK_M);
robot.keyPress(KeyEvent.VK_SPACE);
robot.keyPress(KeyEvent.VK_K);
robot.keyPress(KeyEvent.VK_A);
robot.keyPress(KeyEvent.VK_T);
robot.keyPress(KeyEvent.VK_T);
robot.keyPress(KeyEvent.VK_A);
} catch (AWTException e) {
e.printStackTrace();
}
}
}
Similar Threads
-
Help on hosting a java class that sends data via TCP across the internet.
By altosaxplayer88 in forum NetworkingReplies: 0Last Post: 04-12-2011, 11:11 PM -
Help with Robot class please
By davetheant in forum New To JavaReplies: 2Last Post: 01-04-2011, 12:13 PM -
Robot class
By coltragon in forum New To JavaReplies: 6Last Post: 07-12-2010, 05:54 PM -
Help with Robot Class
By protocos in forum EclipseReplies: 11Last Post: 10-05-2009, 08:15 PM -
Robot Class
By jfredrickson in forum New To JavaReplies: 2Last Post: 07-11-2007, 09:00 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks