Author Topic: Minecraft Direct Message  (Read 1634 times)

Natemonkey1376

  • Newbie
  • *
  • Posts: 3
Minecraft Direct Message
« on: January 24, 2021, 06:13:41 PM »
I'm attempting to get /msg to be typed in and then type in what I say, but I can't seem to get it to type out what I say after it types in "/msg *USERNAME* " for me.

Here is what I have so far:

Press / ? key and hold for 0.1 seconds and release
Quick Input, 'msg USERNAME '
Start Loop While : [{STATE_KEYSTAKE:DELETE}] Equals '0'
    Start Dictation Mode (Clearing Dictation Buffer)
    Start Loop While : [{EXP:{DICTATION} + {STATE_KEYSTAKE:DELETE}}] Equals '0'
    End Loop
    Stop Dictation Mode
    Quick Input, '{DICTATION}'
End Loop

Any help would be much appreciated. Thanks

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Minecraft Direct Message
« Reply #1 on: January 24, 2021, 06:18:43 PM »
"{STATE_KEYSTAKE:}" is not a valid token, so that can't work.

You could also consider using the "Device State" tab for the loop and the condition (using the condition builder for the latter), rather than a token.

Natemonkey1376

  • Newbie
  • *
  • Posts: 3
Re: Minecraft Direct Message
« Reply #2 on: January 24, 2021, 08:09:46 PM »
I feel like I've taken a step backwards now. Sorry I'm probably gonna be a bit slow at this.

Press / ? key and hold for 0.1 seconds and release
Quick Input, 'msg USERNAME '
Start Loop While :  Keyboard Key 'Delete' Is Pressed
    Start Dictation Mode (Clearing Dictation Buffer)
    Start Loop While : [{DICTATION} + {DELETE}] Equals True
    End Loop
    Stop Dictation Mode
    Quick Input, '{DICTATION}'
End Loop

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Minecraft Direct Message
« Reply #3 on: January 24, 2021, 08:23:29 PM »
Your first loop should be using the "Is Not Pressed" operator, unless the intent is for you to hold down that that key while you're dictating.

You have removed both the "{EXP:}" token and what was intended to be the "{STATE_KEYSTATE:}" token from the second loop, and apparently changed to the "True/False (Boolean)" tab rather than the "Text" tab; this cannot result in a working command.

Do you understand how tokens and conditions work? Press F1 while VoiceAttack has focus to open VoiceAttackHelp.pdf in your default PDF viewer, which contains information on VoiceAttack's features.

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


For now, right-click the second "Loop Start" action and choose "Edit With Condition Builder", then double-click the first entry in the "Set 1" list, and use the "Text" tab to check whether "{DICTATION}" equals the literal text "" (I.E. nothing, as you're checking whether the dictation buffer is blank); click "OK" to confirm the changes.

Next, click "Add Condition (And)", and use the "Device State" tab to check whether "Delete" is not pressed; click "OK" to confirm, then "OK" again to apply the changes to your command, "OK" to confirm the changes to the command, then "Apply " or "Done" to save the changes to your profile.

Natemonkey1376

  • Newbie
  • *
  • Posts: 3
Re: Minecraft Direct Message
« Reply #4 on: January 24, 2021, 08:46:56 PM »
Thanks so much for the help. Also thank you for showing me where that pdf was.