Issue: Initial mouse() use in SMART

  1. issueid=374 11-23-2014 02:01 AM
    SRL Junior Member
    Initial mouse() use in SMART
    If GetMousePos() returns (-1, -1), then pick a random point from Client edge.

    I frequently toggle enable/disable SMART to fiddle here and there and when my script resumed it always moved the mouse from the top left corner. So I wrote some code.
    I place it in both _brakeWindMouse and _humanWindMouse, before TDist is set-up; requires 2 extra Integers. (clW, clH)

    Code:
      if (xs = -1) and (ys = -1) then
      begin
        GetClientDimensions(clW, clH);
        case random(100) of
          0..24:
            begin
              xs := random(clW);
              ys := 0;
            end;
          25..49:
            begin
              xs := random(clW);
              ys := clH;
            end;
          50..74:
            begin
              xs := 0;
              ys := random(clH);
            end;
          75..99:
            begin
              xs := clW;
              ys := random(clH);
            end;
        end;
      end;
Issue Details
Issue Number 374
Issue Type Feature
Project SRL Bugs and Suggestions
Status Rejected
Votes for this feature 0
Votes against this feature 1
Assigned Users (none)
Tags (none)




  1. 01-08-2015 08:05 PM
    The Academic
    A nice idea but apart from testing a script, I don't think anyone is going to keep enabling and disabling SMART when a script is running.
  2. 01-08-2015 09:59 PM
    Elitist N00b
    Quote Originally Posted by The Mayor
    A nice idea but apart from testing a script, I don't think anyone is going to keep enabling and disabling SMART when a script is running.
    Hmm... I think I do that, I disable smart to to e.g respond, and/or do some manual work in between, or do some debugging. Tho I should add, I do pause or stop my script first and I rarely run any scripts, :b
+ Reply