Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Need help with Runescape script[noob]

  • Please log in to reply
1 reply to this topic
  • Members
  • 7 posts
  • Last active: Nov 14 2015 10:49 AM
  • Joined: 22 Sep 2015

How do i use Mousegetpos function and keying the coordinates after pressing a button?

Here's where i got so far

Press F12 to retrieve coordinates and stay that way

Press !a and mouse will go to coordinates and click left.




msgbox, Hover over quick prayer button and press F12

Keywait, F12, D
Mousegetpos, pmx, pmy
sleep, 8500
Mousemove, %pmx%, %pmy%, 1, R
send 5secs{enter}



  • Members
  • 954 posts
  • Last active: Jul 23 2016 09:04 PM
  • Joined: 29 Sep 2013

In your mousemove command you are using the R option which makes the move relative to the current position.


Remove that and it should move to where you want it.



Read here:




If this parameter is the letter R, the X and Y coordinates will be treated as offsets from the current mouse position. In other words, the cursor will be moved from its current position by X pixels to the right (left if negative) and Y pixels down (up if negative).



Also note: The X,Y coords can be expressions which means you do not need to wrap the variables in percents (%).

X, Y

The x/y coordinates to move the mouse to, which can be expressions. Coordinates are relative to the active window unless CoordMode was used to change that.




It would look like this when done:

Mousemove, pmx, pmy, 1