Is it possible that the laptop will sound an alarm and send a message to my mobile phone when it passes through the door?

To make it simple, just make a magnetic film shaped like a supermarket and a sensor, and then connect the sensor to the wireless transmitting device.

For NB, you can create a program in Install a camera on your door to sense when someone enters the room, save the video, and send a message to you. Wouldn't it be better to catch it before it is stolen? Besides, China's detection rate is so low, so be careful.