Results 1 to 4 of 4

Thread: Divide by zero in MMouse?

  1. #1
    Join Date
    Feb 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Divide by zero in MMouse?

    I am getting this error:

    [Runtime Error] : divide by Zero in line 80 in script C:\Program Files\SCAR 3.11\includes\SRL/SRL/Core/Mouse.scar.

    Help?



    For easy reference:

    randSpeed:= (random(MouseSpeed) / 2.0 + MouseSpeed) / 10.0;
    getMousePos(cx,cy);
    x:= x + random(rx);
    y:= y + random(ry); ---(This is line 80)---
    WindMouse(cx,cy,x,y,9.0,3.0,10.0/randSpeed,15.0/randSpeed,10.0*randSpeed,10.0*randSpeed);

  2. #2
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Make sure you have Called ''SetUpSrl;''. or set a mouse speed on you one.

    when you have vista. its just a anying bug. try to run scar as administator. mostenly it works then.

  3. #3
    Join Date
    Feb 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ooh Stupid
    I didnt have SetUpSrl
    tnx a lot!

  4. #4
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. MMouse Box
    By mat_de_b in forum Research & Development Lounge
    Replies: 8
    Last Post: 08-23-2007, 11:51 AM
  2. MMouse()
    By Dude in forum OSR Help
    Replies: 20
    Last Post: 08-20-2007, 02:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •