Wednesday, June 29, 2016

AutoIt script to prevent from autolocking Windows

At my previous workplace we had this autolocking policy for Windows machine. Sometimes it became irritating that while I was looking at an active log (on a pc) while sending some information from a laptop, the pc would autolock after a certain minutes.

So I resorted to this AutoIt script:

While True
   Local $pos = MouseGetPos()
   MouseMove($pos[0]-1, $pos[1]-1, 0)
   MouseMove($pos[0], $pos[1], 0)
   Sleep(540000)
WEnd

3 comments:

  1. The blog you have shared is incredibly helpful. The tips you have shared related to web development is really informative. Thanks for sharing this blog!
    Hire Dedicated Wordpress Developer
    Hire Dedicated Opencart Developers
    Smarty Developers
    Hire Dedicated Magento Developer
    Hire Dedicated Web Developers

    ReplyDelete
  2. I have bookmarked your website because this site contains valuable information in it. I am really happy with articles quality and presentation. Thanks a lot for keeping great stuff. I am very much thankful for this site. blue screen

    ReplyDelete
  3. Our escorts Group service is open time 24*7 in 365 days/evenings.Call Girls in Agra You can take profit from our organization,Call Girls in Agra so employ High profile escorts in Agra for night fun.Call Girls in Agra The easy method to request Sexy Escort services in Agra to make with our supervisor.Call Girls in Agra We are dedicating all day, Call Girls in Agra every day Agra Call Girls. Simply make a call to get Call Girls in Agra the housewives for a night experience.

    ReplyDelete