Author Topic: Mouse move action for games like diablo 2  (Read 258 times)

Daniel

  • Newbie
  • *
  • Posts: 5
Mouse move action for games like diablo 2
« on: October 19, 2024, 02:30:29 PM »
Hey all. Would it be possible to implement mouse move action commands for diablo 2? Essentially having four directions (similar to wasd), slightly moving away from the center of the screen, while clicking the mouse (for moving), either up down left right. Along with a stop command which could center the mouse again.

I actually found a diablo2 script for this through AutoHotKey, but for some reason VA can't execute those commands through voice, which made me think, maybe something similar can be made through VA itself? Instead of trying to make VA work together with the AutoHotKey program which was a disaster.

SemlerPDX

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 291
  • Upstanding Lunatic
    • My AVCS Homepage
Re: Mouse move action for games like diablo 2
« Reply #1 on: October 19, 2024, 02:43:40 PM »
Yes, something like this would be pretty straight forward in VoiceAttack.  That said, given the latency between saying something, the recognition, and subsequent action, some commands are not particularly suited for voice commands including anything of a time sensitive nature.  If you say "Stop", and it does not react as fast as you could by releasing keys you have held down with your fingers, or move a mouse back to center or something, and your in-game character could potentially fall in a pit (for example), bad things could happen.

But this is certainly possible in VA.  Check out the VoiceAttack Help Manual (press F1 when VA is in focus), around page 120 - the chapter "Mouse Move Screen" discusses all the possible options.  In the VA Application, mouse-hover over options or fields in the Mouse Move action screen for details relative to them.

Create several voice commands for the various directions, or combine them into one by using dynamic command phrases and conditions which use tokens to evaluate what was said, and enact the appropriate Mouse Move action that you'd desire for that direction.  A final "Stop" voice command could reset the mouse to center easily enough, and/or anything else you'd need to do to stop movement in that game (I don't own it).

Best wishes and good luck!