Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to pull from .txt file via a hotkey. #55

Closed
Stil550 opened this issue May 10, 2023 · 4 comments
Closed

Request to pull from .txt file via a hotkey. #55

Stil550 opened this issue May 10, 2023 · 4 comments

Comments

@Stil550
Copy link

Stil550 commented May 10, 2023

Hello, was hoping for a feature.
I'm using Scratchpad for DCS in VR, utilizing VoiceAttack.
I have VoiceAttack writing directly to a .txt file that the Scratchpad than picks up and displays in game.
The problem seems that the scratchpad does not pull new content of the .txt file once it is changed via VoiceAttack, so I am not seeing new content that VoiceAttack writes into the file.

Was hoping for a way to refresh Scratchpad in game, to pull new content from the .txt

Thank you

@rkusa
Copy link
Owner

rkusa commented May 11, 2023

Scratchpad indeed only loads the contents once when you start DCS, and doesn't pick up any external changes to the files. I don't think that actively watching for file changes would be good idea (not easily done from this kind of mod). However, maybe adding an optional keyboard shortcut to trigger a reload might be a solution? Am I right to assume that you could tell VoiceAttack to hit a certain keyboard shortcut after it changed the .txt file?

@Stil550
Copy link
Author

Stil550 commented May 11, 2023

Yes, a simple, "refresh" button could work. This way I can have VoiceAttack do its changes to the file itself and when needed I can hit that refresh button and pull the new content of the file into the Scratchpad's window.
And yes, it is possible to hit a hotkey via a Voiceattack.

Thank you.

@dapendragon
Copy link

One neat usecase for this that I hope would be possible is to log server and radio messages history to file via some other mod, then read the x latest lines (configurable?) back into DCS scratchpad. That would make it really simple to input nine lines from JTAC and coordinates from fellow players etc.

@rkusa rkusa closed this as completed in ac5a15b Jul 1, 2023
@rkusa
Copy link
Owner

rkusa commented Jul 1, 2023

Added. The hotkey can be set via the hotkeyReloadPages config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants