The Artima Developer Community
Sponsored Link

Java Answers Forum
pressing keys!

1 reply on 1 page. Most recent reply: Jul 4, 2002 11:36 PM by Matt Gerrans

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
ciom

Posts: 1
Nickname: ciom
Registered: Jul, 2002

pressing keys! Posted: Jul 4, 2002 11:05 AM
Reply to this message Reply
Advertisement
i took a java course but i wasnt taught a whole lot.
so i need some help
im making a program in which i need the applet to press a key (on the keyboard) many times in succession
how would i be able to do so?
if this is possible how can i make the applet do it so it presses the key outside of the applet? (ie ...in other programs)
it would be preferable if it pressed both shift keys repeatedly and alternately...or the delete and page down keys
thatnks for any help


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: pressing keys! Posted: Jul 4, 2002 11:36 PM
Reply to this message Reply
You weren't taught a lot or you didn't learn a lot? Who's responsibility is it anyway?

This is just the kind of thing that applets are not intended to do. In fact, this kind of thing can't even be done with a Java application. It is even pretty difficult to do with native Windows APIs (which I assume is the platform for which you are trying to create this potentially malicious program). If you are doing this for your own purposes, you could save yourself a lot of trouble by using a tool like WinBatch or even Visual Basic (and even Windows Script Host, to a limited extent).

Flat View: This topic has 1 reply on 1 page
Topic: Java Mail 2 Previous Topic   Next Topic Topic: String padding

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use