Author Topic: Is this posible in voice attack?  (Read 2230 times)

starhawkprime

  • Guest
Is this posible in voice attack?
« on: November 03, 2017, 10:45:46 AM »
I'm trying to move the mouse pointer down and across a grid. I wrote a script in basic that works now i'm trying to port it to voice attack and cant make heads nor tails of it. Is it possible for voice attack to do something like this  "Xcoord=Xcoord+(X*90)"

Exergist

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 405
  • Ride the lightning
Re: Is this posible in voice attack?
« Reply #1 on: November 03, 2017, 11:21:51 AM »
Is this what you're looking for? I'm assuming that by "Xcoord" you're referring to the current X-position of the mouse, you want to maintain the existing Y-position of the mouse, and you're going to use some arbitrary integer X.

Code: [Select]
Set integer [X] value to 2
Write '[Blue] Starting Mouse Position:  Xcoord = {MOUSESCREENX}  ;  Ycoord = {MOUSESCREENY}' to log
Set integer [Xcoord] value to the converted value of {EXP:{MOUSESCREENX}+({INT:X}*90)}
Move mouse cursor to screen coordinates by text/token X:{INT:Xcoord}, Y:{MOUSESCREENY}
Write '[Blue] Ending Mouse Position:  Xcoord = {INT:Xcoord}  ;  Ycoord = {MOUSESCREENY}' to log