shyte Posted July 29, 2012 Share Posted July 29, 2012 (edited) 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 Edited July 29, 2012 by shyte Quote Link to comment Share on other sites More sharing options...
LordJashin Posted July 29, 2012 Share Posted July 29, 2012 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] Quote Link to comment Share on other sites More sharing options...
FHannes Posted July 29, 2012 Share Posted July 29, 2012 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] Quote Link to comment Share on other sites More sharing options...
Neron Posted August 31, 2012 Share Posted August 31, 2012 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 ? Quote Link to comment Share on other sites More sharing options...
FHannes Posted August 31, 2012 Share Posted August 31, 2012 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? Quote Link to comment Share on other sites More sharing options...
Neron Posted August 31, 2012 Share Posted August 31, 2012 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 Quote Link to comment Share on other sites More sharing options...
FHannes Posted September 1, 2012 Share Posted September 1, 2012 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 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. Quote Link to comment Share on other sites More sharing options...