-
Notifications
You must be signed in to change notification settings - Fork 9
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
Is there a way to load primary.cfg at system start? #52
Comments
1. Prepare Your PowerShell ScriptEnsure your PowerShell script (
2. Set Up Task SchedulerOpen Task Scheduler
Create a New Task
Configure General Settings
Set the Trigger
Define the Action
Finalize and Save the Task
3 Configure Remote Access via SSH (Optional)You can manage and trigger your PowerShell scripts remotely using SSH from your smartphone. If you'd like a button on your phone to trigger the script, follow these steps. Install OpenSSH on WindowsFollow the guide to install OpenSSH on Windows: Configure SSH KeysUsing SSH keys enhances security by allowing password-less authentication. Follow these steps to configure SSH keys: For iPhone
For Android
4. Security Considerations
|
Hey, thanks for you effort in helping me sorting that issue out. I modified your command to my path, so it look like this:
However, when I try to run this command manually it fails with error:
Could you check that? Thanks. |
Try Add a dot and a space before .\Events.ps1 like . .\Events.ps1 |
Syntax error is fixed now, thanks for the tip. Sadly, desired effect is still not there. Command executes but still hasn't same effect as disconnecting from stream from my mobile device. If i run command while on main monitor it outputs next string:
No other effect, as expected. However, if i switch to mobile device and run command it just outputs:
And doesn't switch to main monitor as expected. |
Primary monitor defaults to virtual sink instead of my physical one sporadically, even if i quit session correctly and turn pc off by hand. I thought it would work if i call primary.cfg at system start, but can't achieve desired effect.
Tried delayed start (1-10s) at logon of any user, command executes but has no effect. Command is:
C:\Scripts\MonitorSwapper\MultiMonitorTool.exe /LoadConfig "C:\Scripts\MonitorSwapper\primary.cfg"
Works well when called manually. Any ideas?
The text was updated successfully, but these errors were encountered: