Results 1 to 8 of 8

Thread: Mouse virtualization?

  1. #1
    Join Date
    Mar 2015
    Location
    United States
    Posts
    61
    Mentioned
    0 Post(s)
    Quoted
    24 Post(s)

    Default Mouse virtualization?

    Hello, I have been working on a very simple osrs color bot in java. So far, I have managed to get it to load the game and am able to find colors located on the applet/game. However, I am sort of stuck with making a "fake" mouse for the bot. Java had a Robot class, however this uses the actual mouse and keyboard which is something I do not want. Basically, my question is how do bots make a virtual mouse? Do they just send keyevents to the client?

  2. #2
    Join Date
    Apr 2015
    Location
    FireFox
    Posts
    528
    Mentioned
    10 Post(s)
    Quoted
    227 Post(s)

    Default

    @hoodz; is working on an OSRS Java colour bot and he has a progress thread somewhere on the forums. I'm sure if you send him a picture of an alpaca he'll help.
    Scripting with ogLib

  3. #3
    Join Date
    Jun 2014
    Posts
    463
    Mentioned
    27 Post(s)
    Quoted
    229 Post(s)

    Default

    Quote Originally Posted by elephant View Post
    Hello, I have been working on a very simple osrs color bot in java. So far, I have managed to get it to load the game and am able to find colors located on the applet/game. However, I am sort of stuck with making a "fake" mouse for the bot. Java had a Robot class, however this uses the actual mouse and keyboard which is something I do not want. Basically, my question is how do bots make a virtual mouse? Do they just send keyevents to the client?
    I believe you could view the SMART git
    Tsunami

  4. #4
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

  5. #5
    Join Date
    Mar 2015
    Location
    United States
    Posts
    61
    Mentioned
    0 Post(s)
    Quoted
    24 Post(s)

    Default

    Quote Originally Posted by srlMW View Post
    @hoodz; is working on an OSRS Java colour bot and he has a progress thread somewhere on the forums. I'm sure if you send him a picture of an alpaca he'll help.
    Hmm, I'll have to send him an alpaca than :P.

    Quote Originally Posted by Lucidity View Post
    I believe you could view the SMART git
    I was under the impression or though SMART was just a sandboxed runescape client. What I am trying to do is make mouse events on a java applet. I have already loaded the game, thanks for the idea though maybe SMART will have some useful code to check out for this project though.

    Isn't that just listening for key events? I am currently looking for a way to send mouse/key events to the applet/client.

  6. #6
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Quote Originally Posted by elephant View Post
    Hmm, I'll have to send him an alpaca than :P.



    I was under the impression or though SMART was just a sandboxed runescape client. What I am trying to do is make mouse events on a java applet. I have already loaded the game, thanks for the idea though maybe SMART will have some useful code to check out for this project though.


    Isn't that just listening for key events? I am currently looking for a way to send mouse/key events to the applet/client.
    Gist of the answer - you have to create your own listener(or grab the client's), and then you send generated events to that listener. Googling for creating key/mouse events will answer the rest of that question.

  7. #7
    Join Date
    Mar 2015
    Location
    United States
    Posts
    61
    Mentioned
    0 Post(s)
    Quoted
    24 Post(s)

    Default

    Quote Originally Posted by tls View Post
    Gist of the answer - you have to create your own listener(or grab the client's), and then you send generated events to that listener. Googling for creating key/mouse events will answer the rest of that question.
    Ahh, that seems easy enough. Thanks for clearing that up

  8. #8
    Join Date
    Jul 2018
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Great Thanks to solve this issue

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
  •