Start a Program Automatically When Hooking a Laptop Onto a Docking Station
by suriono in Circuits > Microsoft
1636 Views, 1 Favorites, 0 Comments
Start a Program Automatically When Hooking a Laptop Onto a Docking Station
![internetexp.png](/proxy/?url=https://content.instructables.com/FOF/XOQL/K6G5WSWX/FOFXOQLK6G5WSWX.png&filename=internetexp.png)
This instructible is about how to run a program or an application when you hook your laptop onto a docking station.
In this example I am using Lenovo T480 Windows 10.
Open Task Scheduler
![taskschedule.png](/proxy/?url=https://content.instructables.com/FLN/TNYI/K6G5VV4M/FLNTNYIK6G5VV4M.png&filename=taskschedule.png)
Press the Window key then type "Task Scheduler" and it will open the application
Create a Task
![createtask.png](/proxy/?url=https://content.instructables.com/FSZ/KKMP/K6G5WQTM/FSZKKMPK6G5WQTM.png&filename=createtask.png)
Click the "Create a Basic Task" on the right hand menu of the Task Scheduler window.
Fill in the name and description, whatever you want.
Then click "Next" button on the bottom.
Trigger Event
![trigger.png](/proxy/?url=https://content.instructables.com/FR8/REQX/K6G5WQY2/FR8REQXK6G5WQY2.png&filename=trigger.png)
Select "When a specific event is logged"
Then press "Next" button
Select the Event
![event.png](/proxy/?url=https://content.instructables.com/FYA/PC0M/K6G5WR3N/FYAPC0MK6G5WR3N.png&filename=event.png)
This is the part to select the event in which the laptop is hooked on a docking station.
Follow what is shown on the picture in this step.
Then press "Next" button.
Select a Program
![selectprogram.png](/proxy/?url=https://content.instructables.com/FL9/QYL4/K6G5WR6Z/FL9QYL4K6G5WR6Z.png&filename=selectprogram.png)
![internetexp.png](/proxy/?url=https://content.instructables.com/FKI/O6SL/K6G5WRMP/FKIO6SLK6G5WRMP.png&filename=internetexp.png)
![finish.png](/proxy/?url=https://content.instructables.com/FIC/6JH8/K6G5WS79/FIC6JH8K6G5WS79.png&filename=finish.png)
Select the "Start a program" then press "Next" button.
The next window show the program or script to run. Browse to the location of a program you wish to run. In this example I browse and select the Internet Explorer app.
Press "Next" button then in the next window press "Finish"
That's it. The program will run whenever you hook your laptop into a docking station.