Author Topic: mouse movement  (Read 4145 times)

Josh01

  • Guest
mouse movement
« on: December 06, 2017, 06:55:18 AM »
any way to make the mouse go a direction continuely until i say stop

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: mouse movement
« Reply #1 on: December 06, 2017, 09:41:14 AM »
[Move;stop] mouse [left;right;up;down;]
Code: [Select]
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
You can tweak the pause to make the cursor move slower or faster.

Cursor direction can be changed on-the-fly; E.G. if you speak "move mouse up", you don't have to speak "stop mouse" before saying "move mouse left".

The command phrase can be changed if you prefer, "cursor" may be recognized better than "mouse".
You could also remove "move"(making it [stop;] mouse [left;right;up;down;]), if you find "mouse left" or "cursor left" are recognized just as well.


Command is attached for import.

Josh01

  • Guest
Re: mouse movement
« Reply #2 on: December 07, 2017, 02:43:46 AM »
amazing.

Thank you so much mate ;D ;D ;D

chuckboyer2016

  • Guest
Re: mouse movement
« Reply #3 on: May 17, 2018, 09:21:07 PM »
Please;  Is there any way to include this section into my profile?

I've not much programming experience, mostly linux command line stuff, not much.

I saw how to input the first part with insert Boolean condition [topMouse' part to True
and now to end condition.
But I can't figure out how to begin entering the Condition part and integers.

 So, you have to include each condition line by line? Can't copy/past into existing vat profile?
I think I read where you can have 2 vats up and loaded and use commands from both on same program or instance you're in? This is for arthritis person and mouse movement in online game.

any help vastly appreciated.
Please help? :)
thank you
Chuck
« Last Edit: May 17, 2018, 09:53:10 PM by chuckboyer2016 »

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: mouse movement
« Reply #4 on: May 18, 2018, 07:27:30 AM »
The .vap containing that command is attached to my original post(Move mouse.vap).

To import it into your profile:
  • Download the file
  • In VoiceAttack click
  • On the bottom left corner of the window click "Import Commands"
  • Navigate to the file you downloaded
  • Select it and click "Open"(or double-click the file, whichever you prefer)
  • The command should be selected(have the checkbox checked) by default so click "Import"
  • The command will be added to your command list; click "Apply" or "Done" to save the change.

chuckboyer2016

  • Guest
Re: mouse movement
« Reply #5 on: May 18, 2018, 08:53:50 AM »
It worked, :) Thanks very much.
Now please, what do I edit in the command file now in my original profile to speed the mouse moving drastically up?
I know you said change the pause line but 0,01 seems as low as it goes. Is this the slow setting then? And, say, 0,30 would be faster?

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: mouse movement
« Reply #6 on: May 18, 2018, 09:17:02 AM »
If you need even faster movement(at a cost of reduced smoothness), you can increase the numeric values(1 and -1) that move the cursor. Just keep them symmetrical(E.G. 3 and -3).

chuckboyer2016

  • Guest
Re: mouse movement
« Reply #7 on: May 18, 2018, 04:55:54 PM »
Thanks Pfiel, it works "GREAT"! :)
I love it and the program, bought it!
Thanks for all.
Enjoy your day.