Author Topic: Shadowplay manual recording with voice feedback  (Read 890 times)

BADmarty

  • Newbie
  • *
  • Posts: 3
Shadowplay manual recording with voice feedback
« on: December 16, 2021, 03:41:44 PM »
Hi everyone!

I'm a VR player and I would like to make a command in VA to let shadowplay start a manual recording, followed by an audio confirmation that the recording has started.
Then I would like to do the same thing to stop the recording.

It seems easy but shadowplay only has a single keybind to toggle manual recording so I need VA to somehow keep track if the recording has started or stopped.

I don't know how to code so I could use all the help I can get.

Thanks in advance!

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Shadowplay manual recording with voice feedback
« Reply #1 on: December 16, 2021, 04:22:12 PM »
Actually checking the recording state would require ShadowPlay to have an interface for that. This project may have components that could be adapted for such a purpose, by someone with the appropriate knowledge.


Otherwise, you can keep track of what the last known recording state should be. Essentially, assuming ShadowPlay is not recording already when VoiceAttack starts, it could be assumed that recording will start the first time the command is executed, and that it will stop the second time the command is executed, and so on.

E.G.
Code: [Select]
Press A key and hold for 0,02 seconds and release
Set Boolean [recordingState] to Toggle
Begin Boolean Compare : [recordingState] Equals True
    Say, 'ShadowPlay should now be recording'
Else
    Say, 'ShadowPlay should now stop recording'
End Condition

Obviously, if ShadowPlay was already recording when VoiceAttack was started, or it stops recording after you have executed the command, for any reason, that assumed state will no longer match the actual state.


Press F1 while VoiceAttack has focus to open VoiceAttackHelp.pdf in your default PDF viewer, which contains information on VoiceAttack's features, including those used in the above example.

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

BADmarty

  • Newbie
  • *
  • Posts: 3
Re: Shadowplay manual recording with voice feedback
« Reply #2 on: December 17, 2021, 12:14:50 AM »
Hey Pfeil!

Your second option is exactly what i'm looking for! :D
I'll try it out after my work shift.

Thanks!

BADmarty

  • Newbie
  • *
  • Posts: 3
Re: Shadowplay manual recording with voice feedback
« Reply #3 on: December 17, 2021, 11:46:30 AM »
Works perfectly! 😊