SRL Archive - OSR Help

Mouse movement


TomTuff

2011-12-04 23:03:47

How would i make my mouse click like this
Instead of this?
(Red line indicates path, green dots indicate click point)

E: I realize the order of items to be clicked is different in the two pictures, but the point is I want it to be smoother with more S like clicks with less time stopping to click instead of sharp movements like a W shape with long pauses to click.

YoHoJo

2011-12-04 23:06:24

What do you currently have coded?
I'd use
function InvMouse(InvSlot, Action: Byte) : boolean;
By: EvilChicken!
Description: A combined MouseItem & MMouseItem, will hopefully replace both
procedures one day. Usage is like SRL's MouseBox, Action determines what to do:
1: Leftclick
2: Rightclick
3: Move mouse to item

E: Oh I see.
I would copy/paste one of the more core mouse functions from SRL into your script, long with something like InvMouse.
Then change the names of both (so they won't conflict with SRLs) and then edit the mouse function to be more curvey wurvey (not sure exactly what would need to be changed see Flight's more recent thread/ask around)

TomTuff

2011-12-04 23:13:43

From: YoHoJo
What do you currently have coded?
I'd use
function InvMouse(InvSlot, Action: Byte) : boolean;
By: EvilChicken!
Description: A combined MouseItem & MMouseItem, will hopefully replace both
procedures one day. Usage is like SRL's MouseBox, Action determines what to do:
1: Leftclick
2: Rightclick
3: Move mouse to item

E: Oh I see.
I would copy/paste one of the more core mouse functions from SRL into your script, long with something like InvMouse.
Then change the names of both (so they won't conflict with SRLs) and then edit the mouse function to be more curvey wurvey (not sure exactly what would need to be changed see Flight's more recent thread/ask around)


Lol :p I know about InvMouse(). You're reffering to WindMouse right? What values/parts of the function in WindMouse would i have to change?

YoHoJo

2011-12-04 23:15:40

I do not know, but that's how I would do it!
Ask Flight or just ask people how on this thread exactly what to change.
This might help:
http://villavu.com/forum/showthread.php?t=68616

KingKong

2011-12-04 23:51:17

Make your own bezier spline path. This should help:
http://villavu.com/forum/showthread.php?t=21377

I use custom mousefunctions in all my scripts that i learnt from that tut.