SRL Archive - OSR Help

Dragging something across the screen?


xdarkshadowx

2012-06-02 23:53:40

How do I use the mouse to drag something across the screen?

CephaXz

2012-06-02 23:56:02

There's a function called DragMouse. Can try using it :p

riwu

2012-06-02 23:56:38

HoldMouse(x,y,mouse_left);
MMouse(newX,newY,5,5);
GetMousePos(finalX,finalY);
ReleaseMouse(finalX,finalY,mouse_left);

Edit:
oh wait there is DragMouse? use that then

Rich

2012-06-03 13:51:56

From: riwu
HoldMouse(x,y,mouse_left);
MMouse(newX,newY,5,5);
GetMousePos(finalX,finalY);
ReleaseMouse(finalX,finalY,mouse_left);

Edit:
oh wait there is DragMouse? use that then
Yup, it's in Mouse.simba, and been there for quite a while.

@ OP, if you wonder if anymore functions exist, have a quick look in the relevant .simba SRL document to see if what you're after is there :)

Joe

2012-06-03 14:06:41

From: Rich
Yup, it's in Mouse.simba, and been there for quite a while.

@ OP, if you wonder if anymore functions exist, have a quick look in the relevant .simba SRL document to see if what you're after is there :)


Oh how I love reading through the Mouse.simba file. Actually the bank.simba file is my favorite. But yeah, giving the include in general a scanover isn't a terrible idea! Really informant!