Author Topic: mouse movement Below 1 variable as 0.5 is not possible  (Read 3247 times)

Josh01

  • Guest
mouse movement Below 1 variable as 0.5 is not possible
« on: December 29, 2017, 07:53:37 PM »
Mouse movement Below 1 variable as 0.5 is not possible in any direction as far as i have tried

Please make this possible

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: mouse movement Below 1 variable as 0.5 is not possible
« Reply #1 on: December 29, 2017, 08:25:28 PM »
If I'm remembering correctly, mouse movement is in pixels.  I think the only reason you're allowed to even put in a decimal value (say, 10.7 pixels), is because it's a free-form box that takes tokens (the partial part is lopped off).

Josh01

  • Guest
Re: mouse movement Below 1 variable as 0.5 is not possible
« Reply #2 on: January 04, 2018, 12:55:25 AM »
This is what i have currently how do i get a slower movement speed please?



Set Boolean [stopMouse] to True
Begin Text Compare : [{CMD}] Starts With 'stop'
End Condition - Exit when condition met
Begin Text Compare : [{CMD}] Ends With 'left'
    Set integer [mouseLeft] value to 1
    Set integer [mouseUp] value to 0
Else If Text Compare : [{CMD}] Ends With 'right'
    Set integer [mouseLeft] value to -1
    Set integer [mouseUp] value to 0
Else If Text Compare : [{CMD}] Ends With 'up'
    Set integer [mouseLeft] value to 0
    Set integer [mouseUp] value to 1
Else If Text Compare : [{CMD}] Ends With 'down'
    Set integer [mouseLeft] value to 0
    Set integer [mouseUp] value to -1
End Condition
Set Boolean [stopMouse] to False
Start Loop While : [stopMouse] Does Not Equal True
    Move mouse left [{INT:mouseLeft}] relative mickey(s), up [{INT:mouseUp}] relative mickey(s) (from cursor position)
    Pause 0.01 seconds
End Loop



Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: mouse movement Below 1 variable as 0.5 is not possible
« Reply #3 on: January 04, 2018, 06:46:06 AM »
Increasing the pause time will reduce the repeat rate, thus the cursor will cover less distance per second, appearing to move slower.

So change
Code: [Select]
Pause 0.01 secondsTo a slightly higher value.

Josh01

  • Guest
Re: mouse movement Below 1 variable as 0.5 is not possible
« Reply #4 on: March 16, 2018, 03:02:06 AM »
Awesome worked thanks man