Results 1 to 6 of 6
  1. #1
    almarjin is offline Member
    Join Date
    Feb 2012
    Posts
    3
    Rep Power
    0

    Default Send keystokes to a minimized window.

    Hello,

    I'd like to know if it's possible to send keystrokes to a minimized or a window that is not on focus?

    Thanks,

    almarjin

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,883
    Rep Power
    25

    Default Re: Send keystokes to a minimized window.

    You mean you want to trap keystrokes that are going to another window that has the focus?

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: Send keystokes to a minimized window.

    No, you can't create a keylogger in Java.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    almarjin is offline Member
    Join Date
    Feb 2012
    Posts
    3
    Rep Power
    0

    Default Re: Send keystokes to a minimized window.

    No, it's not keylogger. it's like I have a keys that will be sent to a minimized window. I will use this to play a game while doing other things. right now I can send keystrokes(saved in java code with delay) and watch my character playing but I can't use the other windows because it's sending the keys to the focus window.

    thanks

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: Send keystokes to a minimized window.

    Quote Originally Posted by almarjin View Post
    No, it's not keylogger. it's like I have a keys that will be sent to a minimized window.
    That *is* what a keylogger is capable of.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  6. #6
    almarjin is offline Member
    Join Date
    Feb 2012
    Posts
    3
    Rep Power
    0

    Default Re: Send keystokes to a minimized window.

    ok. maybe it's not possible because I don't have control over the minimized window(game). Because I need a listerner on that window or something like that.

    I'm super new to java and I have just started reading PDF tutorial(Head First).

    Thanks for the time guys :)

Similar Threads

  1. JFrame minimized
    By ebubekird in forum AWT / Swing
    Replies: 2
    Last Post: 12-29-2011, 11:28 PM
  2. Replies: 1
    Last Post: 07-25-2011, 11:24 AM
  3. Memory increases until window is minimized
    By java_dude in forum AWT / Swing
    Replies: 4
    Last Post: 02-16-2011, 02:53 AM
  4. Replies: 10
    Last Post: 06-06-2010, 07:49 PM
  5. Open a shell minimized (iconified)
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-25-2008, 03:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •