Shutting down your laptop with arduino

Hello,

I want to make a countdown clock to make me study :stuck_out_tongue:

I want to shut my laptop down (running windows) with my arduino. how do I do that? since it has a battery disabling the power cord won't work. So how do I approach this? are there any guides?

Thanks in advance.

I would get an Arduino or clone that can act like a USB keyboard (Leonardo, Teensy, Digispark...) When you want to have it shut down your computer just send Windows Key, Right-Arrow, Enter in quick succession.

I would ommit the arduino for this and write a program that runs on the computer itself and shuts it down via system calls, i.e. starts the following command "C:\WINDOWS\System32\shutdown /s".