There are many tricks to lock the computer screen but the most popular and fastest way is to use shortcuts. win+L is the shortcut to lock the screen. You can also use mouse to lock the screen
This is an alternate way to lock the computer screen in windows 7.
Steps:
1: Right-click on the desktop. point to new, then shortcuts.
2: Now type rundll32.exe user32.dll, LockWorkStation in the location box and click next
3: then give the name to this shortcut. Click on the Finish button.
Now you can use this shortcut to lock the computer screen