-
Notifications
You must be signed in to change notification settings - Fork 192
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
Anyway to make this program run when I turn my pc? #61
Comments
You may try to do this.
|
@amoshydra's suggestion works great. This issue can probably be closed. |
In order to run EZBlocker as administrator on startup/login you have to use a scheduled task, here's the file I use. <?xml version="1.0" encoding="UTF-16"?>
<!-- aso http://stackoverflow.com/a/5427746 -->
<!-- run in a privileged shell:
schtasks /create /tn "Spotify Ad-Blocker (Administrator)" /xml ezBlockerScheduleTask_RunAsAdmin.xml-->
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2015-01-27T18:30:34</Date>
<Author>me</Author>
</RegistrationInfo>
<Triggers>
<LogonTrigger>
<StartBoundary>2015-01-27T18:30:00</StartBoundary>
<Enabled>true</Enabled>
</LogonTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>***enter your user id here***</UserId>
<LogonType>InteractiveToken</LogonType>
<RunLevel>HighestAvailable</RunLevel>
</Principal>
</Principals>
<Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>false</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<IdleSettings>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>PT0S</ExecutionTimeLimit>
<Priority>7</Priority>
</Settings>
<Actions Context="Author">
<Exec>
<Command>***enter path here, use quotes, e.g.: "D:\EzBlocker\EZBlocker.exe"***</Command>
</Exec>
</Actions>
</Task> |
I can implement a checkbox setting. The tricky part is that users may change where they decide to put EZBlocker so I'd have to add some additional checks for when the file gets moved. |
Autostart option added in v1.6.7. |
Anyway to make this program run when I turn my pc? kind of like a "start up" with skype or steam.
The text was updated successfully, but these errors were encountered: