Jump to content
shyte

What happened to movewindmouse?

Recommended Posts

Was movewindmouse removed in 3.35? Everytime I try to run my script I get a movewindmouse compiler error.

 

It is also happening with clickwindmouse and clickwindmousebox

 

A lot has changed. - http://forums.scar-divi.com/showthread.php?1642-SCAR-Divi-3-35-Final Check out the change log on that page.

 

As far as I know these are the functions you are looking for now in 3.35, SetMousePos is the new MoveMouse in 3.35.

 

I think the WindMouse got a new param, Target Area? Maybe that's why there is no ClickWindMouseBox

 

[sCAR]

MoveMouse(X, Y);

MoveMouseEx(X, Y, RX, RY, MouseSpeed);

ClickMouse(X, Y, Btn); // button can be mbLeft, mbRight, or mbMiddle

ClickMouseEx(X, Y, Btn, Interval);

MoveMouseExpert(X, Y, Gravity, Wind, MinWait, MaxWait, MaxStep, TargetArea);

[/sCAR]

Link to comment
Share on other sites

MoveWindMouse is now MoveMouse, MoveMouseEx and MoveMouseExpert, the latter gives you direct access to the raw parameters of WindMouse, which weren't exposed in older versions of SCAR.

 

This is how MoveMouseExpert is translated into the other functions:

[scar]procedure MoveMouseEx(const X, Y, RX, RY, MouseSpeed: Integer);

var

RandSpeed: Extended;

begin

RandSpeed := (Random(MouseSpeed) / 2 + MouseSpeed) / 10;

if RandSpeed = 0 then RandSpeed := 0.1;

MoveMouseExpert(X + Random(RX), Y + Random(RY), 9, 3, 10 / RandSpeed, 15 / RandSpeed, 10 * RandSpeed, 10 * RandSpeed);

end;

 

procedure MoveMouse(const X, Y: Integer);

begin

MoveMouseEx(X, Y, 0, 0, 25);

end;[/scar]

Link to comment
Share on other sites

Hello! i have problem with new mouse functions.

Move cursor over flash game window is sometimes very slow, and sometimes click happened before mouse reach target coordinates.

Is any chance to get back old Movemouse or silent mouse ?

 

I won't be reverting the api, no, silent mouse will be implemented in the (near) future. I haven't noticed any problems myself though, have you tried changing the mouse speed?

Link to comment
Share on other sites

yes i have try with speed also i do some test with MoveMouseExpert, but i don't know ranges of these constants

 

Gravity, Wind, MinWait, MaxWait, MaxStep, TargetArea.

actualy don't know meaning of all. I think :

wind - random path to target coordinates.

gravity - stopping mouse when reach target area.

minwait, maxwait - don't know when this wait occur, at beggining, betwen step,at end?

MaxStep - distance betwen two approaching position(at beginning)

TargetArea - radius around x,y when gravity start to slowing down mouse.

 

Is that correct? I m not sure, pleas help?

 

if i put MoveMouseExpert(X, Y,100,0,0,5,200,50); move is very fast but is not stable,it crash

Link to comment
Share on other sites

yes i have try with speed also i do some test with MoveMouseExpert, but i don't know ranges of these constants

 

Gravity, Wind, MinWait, MaxWait, MaxStep, TargetArea.

actualy don't know meaning of all. I think :

wind - random path to target coordinates.

gravity - stopping mouse when reach target area.

minwait, maxwait - don't know when this wait occur, at beggining, betwen step,at end?

MaxStep - distance betwen two approaching position(at beginning)

TargetArea - radius around x,y when gravity start to slowing down mouse.

 

Is that correct? I m not sure, pleas help?

 

if i put MoveMouseExpert(X, Y,100,0,0,5,200,50); move is very fast but is not stable,it crash

 

I'm not certain what the default parameters for MoveMouseExpert are, but they are somewhere in some post if I recall correctly :P Atm I don't have access to SCAR's source because I haven't had the time to set up my machine properly after it died on me, so I can't check.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...