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

How to re - open, after restarting computer #54

Open
Kenljs opened this issue Jun 18, 2024 · 4 comments
Open

How to re - open, after restarting computer #54

Kenljs opened this issue Jun 18, 2024 · 4 comments

Comments

@Kenljs
Copy link

Kenljs commented Jun 18, 2024

Thank you for the work you put into this!

I was able to get this functioning so that control shift space started the transcription. However after restarting my computer I don't know how to get it back up and running again.

I'm sorry, but I know little when it comes to code, and I used chat GPT to help me get it installed.

@Kenljs
Copy link
Author

Kenljs commented Jun 18, 2024

I did try and look online for instructions, or ask GPT but couldnt resolve my issue.

@Kenljs
Copy link
Author

Kenljs commented Jun 18, 2024

This has been resolved. Thank you!

Thanks to handy-dandy GPT I found an easy way to relaunch after Opening

I created a text file on my desktop and put this code into it, then I changed the file extension to .bat to change the file type

For any novices who sees this in the future, you need to change

C:\Windows\System32\whisper-writer

to wherever whisper-writer is located on your computer.

@echo off
:: Check if the script is running as administrator
openfiles >nul 2>&1
if %errorlevel% neq 0 (
    echo Requesting administrative privileges...
    powershell -Command "Start-Process cmd -ArgumentList '/c %~dp0%~nx0' -Verb runAs"
    exit /b
)
:: Your original script starts here
cd C:\Windows\System32\whisper-writer
call venv\Scripts\activate
python run.py

@anaxian
Copy link

anaxian commented Jun 19, 2024

I dont think you need admin privileges

@Kenljs
Copy link
Author

Kenljs commented Jun 19, 2024

Huh... For some reason it wouldn't start without them initially. but I just removed that section, and now it is working. Thanks.

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

2 participants