I've got something to work now. I had been trying to get it to work with the OVIE overlay/desktop program but I couldn't work out how to change the UI. They use Qt which I'm unfamiliar with and it sent me in circles.
So I ended up modifying the client_commandline program and the driver instead.
You will need to copy the driver_00vrinputemulator.dll into the steam folder:
C:\Program Files (x86)\Steam\steamapps\common\SteamVR\drivers\00vrinputemulator\bin\win64
I would rename the one that will be in there.
Then with the program I have made two batch files, save.bat and replay.bat
The commands they run are:
client_commandline savepose 0 vrdeskHMD.txt
and
client_commandline replaypose 0 vrdeskHMD.txt
0 is always the device ID of the HMD and the filename can be changed.
Use save.bat to get the current position and rotation of the HMD and put it in the txt file. Then replay.bat will use that and start the driver replaying the saved pos/rot. It will do so until a key is pressed
OVIE can be used to enable offsets after the replay.bat is replaying. But only the last set of values, i.e. "Driver Offsets" should be changed. This will allow for some adjustments. Keep in mind they won't do anything to Virtual Desktop unless you hit the orientation button (or F4 key).
You can save the position again with the offsets being enabled by running save.bat but make sure replay.bat is still running when you do. After that you can disable the offsets, stop replay.bat and then run it again when you want
So I ended up modifying the client_commandline program and the driver instead.
You will need to copy the driver_00vrinputemulator.dll into the steam folder:
C:\Program Files (x86)\Steam\steamapps\common\SteamVR\drivers\00vrinputemulator\bin\win64
I would rename the one that will be in there.
Then with the program I have made two batch files, save.bat and replay.bat
The commands they run are:
client_commandline savepose 0 vrdeskHMD.txt
and
client_commandline replaypose 0 vrdeskHMD.txt
0 is always the device ID of the HMD and the filename can be changed.
Use save.bat to get the current position and rotation of the HMD and put it in the txt file. Then replay.bat will use that and start the driver replaying the saved pos/rot. It will do so until a key is pressed
OVIE can be used to enable offsets after the replay.bat is replaying. But only the last set of values, i.e. "Driver Offsets" should be changed. This will allow for some adjustments. Keep in mind they won't do anything to Virtual Desktop unless you hit the orientation button (or F4 key).
You can save the position again with the offsets being enabled by running save.bat but make sure replay.bat is still running when you do. After that you can disable the offsets, stop replay.bat and then run it again when you want