Results 1 to 4 of 4

Thread: [Java][NOX] Blocking Program KeyEvents and InputEvents

  1. #1
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default [Java][NOX] Blocking Program KeyEvents and InputEvents

    Has anyone tried writing a program to use on the popular Android emulator NOX?

    Nox lets you assign hotkey buttons to locations that you would normally click with your finger on your phone so that you can instead use keystrokes to achieve the same thing.

    However, it seems NOX ignores any input I give it from my Java program. For example, if my program repeatedly inputs "e" to attack, NOX does not do anything but if I click in a Notepad I can see "e" being repeatedly inputed. If I myself press "e" on my keyboard NOX behaves as expected.

    Does anyone know why this happens or has a solution?

    Thanks

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

  2. #2
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    How are you generating the keystroke? Nox is closed source? Can you use Anbox?

    I don't know why Nox would do so, but it is possible to ignore injected events. How much work are you willing to put into something else? You can directly synthesize system-wide input if you have a debug connection or run an application from the shell and not the launcher.
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  3. #3
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    1,011
    Mentioned
    50 Post(s)
    Quoted
    505 Post(s)

    Default

    Quote Originally Posted by Sk1nyNerd View Post
    Has anyone tried writing a program to use on the popular Android emulator NOX?

    Nox lets you assign hotkey buttons to locations that you would normally click with your finger on your phone so that you can instead use keystrokes to achieve the same thing.

    However, it seems NOX ignores any input I give it from my Java program. For example, if my program repeatedly inputs "e" to attack, NOX does not do anything but if I click in a Notepad I can see "e" being repeatedly inputed. If I myself press "e" on my keyboard NOX behaves as expected.

    Does anyone know why this happens or has a solution?

    Thanks
    Yes, I've been botting on Nox for a while. I use PostMessage to send mouse and keyboard input and have never had a problem with it.

  4. #4
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    I am just using robot class to press and release keys/mouse.

    I will check out PostMessage, thanks

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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