move mouse random location then click

Discussion in 'Scar/Simba Help' started by lichkinq, Nov 13, 2008.

move mouse random location then click
  1. Unread #1 - Nov 13, 2008 at 8:25 PM
  2. lichkinq
    Joined:
    Jun 18, 2007
    Posts:
    16
    Referrals:
    0
    Sythe Gold:
    0

    lichkinq Newcomer

    move mouse random location then click

    Code:
      begin
        movemousesmoothEx(x,y,192+random(67), 447+random(19))
        wait(500+random(300))
        clickmouse(x,y,true)
        Wait(500+random(300))
        movemousesmoothEx(x,y,438+random(67), 447+random(19))
        Wait(500+random(100))
        clickmouse(x,y, true)
        Wait(7000+random(750))
       end
    I want to move the mouse to a random spot within set coords. And then click the mouse on that spot. How do I do this and have it set the x,y for the click? I only saw x,y being set when find(x,y, color, coords) was used(in the tut)

    And also is there a simpler way to set where the mouse randomly moves to? I stopped scripting a while ago so i forgot a few things
     
  3. Unread #2 - Nov 15, 2008 at 3:07 PM
  4. GMK
    Joined:
    Aug 2, 2007
    Posts:
    395
    Referrals:
    0
    Sythe Gold:
    0

    GMK Forum Addict

    move mouse random location then click

    Run scar, then click on the test script. nuff said.
     
  5. Unread #3 - Nov 19, 2008 at 12:07 AM
  6. lichkinq
    Joined:
    Jun 18, 2007
    Posts:
    16
    Referrals:
    0
    Sythe Gold:
    0

    lichkinq Newcomer

    move mouse random location then click

    not sure exactly what you mean "run the test script". I looked In the test scripts folder and there was way more than one. But I did find the get mouse position command which will work for what I was trying to do.
     
< This script works put won't open door...... | Forms prob?? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site