Results 1 to 15 of 15

Thread: MoveWindMouseEx in Simba

  1. #1
    Join Date
    Mar 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default MoveWindMouseEx in Simba

    Hi,
    I have been using scar for ages and finally decided to switch to simba. Was just wondering if there was any way of moving the mouse like a human in simba?
    Also is there anyway of stopping the script from running when simba isnt the active window? as F9 dosnt seem to work.
    Thanks

  2. #2
    Join Date
    Feb 2009
    Location
    AZ, USA
    Posts
    460
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Simba Code:
    {*******************************************************************************
    procedure MMouse(x, y, rx, ry: integer);
    By: Benland100
        Laptop Movement by Hobbit with help from nielsie95!
    Description: Moves the mouse.
    *******************************************************************************}


    {*******************************************************************************
    procedure Mouse(mousex, mousey, ranx, rany: Integer; left: Boolean);
    By: Mutant Squirrle, with a small fix by hy71194
    Description: Moves then clicks mouse.
    *******************************************************************************}
    rx/ry and ranx/rany are an additional random amount to move the mouse

    Those are the functions most people use to move or click the mouse, but there's others. (check out core/Mouse.scar)
    I would think that would be the functions you were using in SCAR too, assuming you were using SRL..

    sorry don't know about the second question
    Is your account in an old-school random? Help SRL-OSR solve randoms!

  3. #3
    Join Date
    Oct 2008
    Posts
    500
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I believe the new button is F12. Could be wrong though.. Just hover your mouse over the stop script button for a second and it will show the shortcut.

  4. #4
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    The second question, no. You have to make it the active window. :/

  5. #5
    Join Date
    Mar 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by i luffs yeww View Post
    The second question, no. You have to make it the active window. :/
    That sucks, could stop scar when it wasn't active...

    I was using MoveWindMouseEx in scar, will try using MMouse see what it looks like

  6. #6
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    I know. The reason was how it was involved in the Windows API or something. And Delphi and closed etc.

  7. #7
    Join Date
    Mar 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Tried using MMouse but it doesn't seem to work, just creeps along really slowly. Is it because i'm not using it for runescape?

  8. #8
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    No, it's because you didn't add SetupSRL; at the start of your main loop.

  9. #9
    Join Date
    Jan 2008
    Location
    10° north of Hell
    Posts
    2,035
    Mentioned
    65 Post(s)
    Quoted
    164 Post(s)

    Default

    Quote Originally Posted by Gub View Post
    Tried using MMouse but it doesn't seem to work, just creeps along really slowly. Is it because i'm not using it for runescape?
    You need to SetupSRL;
    or set MouseSpeed := 20;

    Dg's Small Procedures | IRC Quotes
    Thank Wishlah for my nice new avatar!
    Quote Originally Posted by IRC
    [22:12:05] <Dgby714> Im agnostic
    [22:12:36] <Blumblebee> :O ...you can read minds

  10. #10
    Join Date
    Mar 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Brilliant thanks for the super fast replys! also just found that ctrl+alt+s stops the script

  11. #11
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Ctrl + Alt + S stops the script (just like in SCAR). Globally bound on windows.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  12. #12
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    Ctrl + Alt + S stops the script (just like in SCAR). Globally bound on windows.
    Is this feature new on Simba, because a while ago I remember I tried it and it didn't work.

  13. #13
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Quote Originally Posted by Camaro' View Post
    Is this feature new on Simba, because a while ago I remember I tried it and it didn't work.
    I think it's just that the Simba window needs to be active for it to work.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  14. #14
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by Rich View Post
    I think it's just that the Simba window needs to be active for it to work.
    No, it's globally bound in Windows. Perhaps it doesn't work when you are running multiple Simba's, but it should work.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  15. #15
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Multiple Simbas + Ctrl Alt S don't work. It will stop the one that's open first and then won't stop the second one, even if the second one is started first, and if the first one is closed.

    Even if I open one then another, close the first one, and then run the second one I can't Ctrl Alt S.

    (Just pointing these things out for info, not because I'm butthurt or anything )

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
  •