Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-24-2011, 04:41 PM   PM User | #1
bierbuikje
New to the CF scene

 
Join Date: May 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
bierbuikje is an unknown quantity at this point
(awt) force click

Is there an option that if the player presses a specific button it runs a code, and in that code it automatically presses buttons without the player doing anything. Is such like that possible?

Thanks!
bierbuikje is offline   Reply With Quote
Old 05-25-2011, 04:40 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,383
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
Yes, it is possible with javascript to do that.
sunfighter is offline   Reply With Quote
Old 05-25-2011, 04:44 PM   PM User | #3
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,645
Thanks: 4
Thanked 2,450 Times in 2,419 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Search the API for the Robot class. It will allow you to invoke keyboard commands and move the mouse.
The SystemEventQueue can also provide some access to post the button commands.
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:48 PM.


Advertisement
Log in to turn off these ads.