Author Topic: Cycle 1-10 using a keyboard press  (Read 1882 times)

2p2walk

  • Newbie
  • *
  • Posts: 2
Cycle 1-10 using a keyboard press
« on: January 25, 2021, 05:19:30 AM »
I'm playing ark. I need to access my hot bar. Each spot is numbered 1,2,-9,0. i want to press "g" to cycle each time "g" is pressed so i can cycles through my hot bar.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Cycle 1-10 using a keyboard press
« Reply #1 on: January 25, 2021, 08:20:26 AM »
Which part are you having trouble with, specifically?

Have you read through the documentation? Press F1 while VoiceAttack has focus to open VoiceAttackHelp.pdf in your default PDF viewer.

These topics may also be of use:
Control flow (If, Else, ElseIf, Loop, Jump) basics
Variables and tokens summed up


There are a few ways you could approach this, but if it only needs to work with numeric keys, you could use an Integer variable and increment it using the "Computed value" option, combined with the "Quick Input" action and the "{INT:}" token to press the key, and using a condition to reset the integer to 0 once it reaches 10.