Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Full screen mode robot keypresses simulation  RSS feed

 
Ashish Malik
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to automate key presses through robot class in Java AWT for a program running in full-screen exclusive mode like a game running in full screen.
I tried but nthing worked....

Any idea how to do it?
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, most games have built-in protection against that sort of stuff. For many online game sites, even attempting something like this is illegal.
 
Ashish Malik
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Before the protection thing of games occur....i guess java blocks any such access to applications running in full screen mode.

You need to grant access to the java app....some awt permissions! In my case it worked...!
 
Rob Camick
Ranch Hand
Posts: 2754
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you going to post the solution for the benefit of others?
 
Ashish Malik
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Camick wrote:Are you going to post the solution for the benefit of others?


I wasnt sure if that thing really worked or was it some other thing....thats why didnt post exact solution and left open!
 
Trimbitas Sorin-Iulian
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any news on this?

Thanks

Sorin
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!