• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

techtips

Technical stuff!

  • Home
  • WindowsOS
  • Offline Installer
  • Web links

VB Script to keep unlock your windows machine

June 20, 2017 by admin Leave a Comment

There are times we want to keep our windows machine unlock when not in use or system is left idle for some duration.

Create a new text file, rename to dont_lock.vbs, Right click on the vbs file > click edit and write below lines of script to keep unlock

set wsc = CreateObject("WScript.Shell")
Do
WScript.Sleep (60*1000)
wsc.SendKeys ("{SCROLLLOCK 2}")
Loop

The above script will send key events to your machine to keep unlock

Note: keep in mind what keys you are sending, this might effect if any automation scripts are running or any task on desktop running.

For more information on key events, follow SendKeys

Filed Under: WindowsOS

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Categories

Recents

  • Copy file path with slashes in MacOS Mojave instead of triangle
  • Open hidden files in mac text editor
  • How to manage and open chrome browser extensions or plugins
  • Create an executable command file in MAC OS
  • Backup windows environmental variables

Menu

open all | close all
  • Contact Us
    • About Us
  • Download [official] portable notepad++
    • Find IP address on windows machine
      • Different ways to open remote desktop from windows
      • How to restart remote machine/server in windows
      • Place chrome’s address bar to bottom of screen

Footer

Design

With an emphasis on typography, white space, and mobile-optimized design, your website will look absolutely breathtaking.

Learn more about design.

Content

Our team will teach you the art of writing audience-focused content that will help you achieve the success you truly deserve.

Learn more about content.

Copyright © 2025 · Genesis Sample on Genesis Framework · WordPress · Log in