Results 1 to 9 of 9

Thread: [2005] stop computer form locking? [resolved]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    Austin
    Posts
    397

    [2005] stop computer form locking? [resolved]

    my work computer automatically locks me out after 5 minutes if i don't move the mouse or touch a key.


    is there a programmatic way of making the computer *think* the mouse is moving or something is happening?


    /edit
    i have admin rights over my box BUT this is one thing i can't change in the control panel.
    Last edited by texas; Oct 4th, 2007 at 10:52 AM.

  2. #2
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    419

    Re: [2005] stop computer form locking?

    Get a program that you turns on/off and in the timer it just resets the mouse position every 180 seconds or something.

    Code:
    Windows.Forms.Cursor.Position = New System.Drawing.Point(Me.Location.X + 1)
    That will move the mouse along 1 pixel horizontally so it should think you moved the mouse.
    Last edited by VBlee; Sep 20th, 2007 at 04:47 PM.
    If a post has been usefull then Rate it!

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [2005] stop computer form locking?

    I'm curious as to why you can't change this in the control panel if you have admin rights.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    Austin
    Posts
    397

    Re: [2005] stop computer form locking?

    the code worked but it didnt trick the OS

    i'm thinking that windows wants an input device movement.


    /hack
    our network admins have some domain policy that updates our computers or when they installed windows they removed the option to edit the timeout.
    Last edited by texas; Oct 1st, 2007 at 09:56 AM.

  5. #5
    Frenzied Member
    Join Date
    Mar 2005
    Location
    Sector 001
    Posts
    1,577

    Re: [2005] stop computer form locking?

    Then let's give it input from a device - in this case a harmless ctrl 'pressing' every now and then. Not through the framework but by playing directly from the keyboard. &HA3 corresponds to the Control key as defined in Winuser.h
    Code:
        Private Declare Sub keybd_event Lib "user32" _
        (ByVal K As Byte, ByVal Bsc As Byte, _
        ByVal WParam As Integer, ByVal LParam As Integer)
    
    
    
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            
            'Key Depress (ctrl)
            keybd_event(&HA3, &H45S, &H1S Or 0, 0)
    
            'Key Release (ctrl)
            keybd_event(&HA3, &H45S, &H1S Or &H2S, 0)
    
        End Sub
    VB 2005, Win Xp Pro sp2

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] stop computer form locking?

    So, your IT department has setup this timeout so that your machine will be locked if you walk away from it. Now you circumvent this policy of your company, then you walk away from your machine and forget to lock it, and someone uses your account to do something they shouldn't. It's not really our place to tell you how to circumvent your company's legitimate security policies. If you think they are too strict then you should approach your IT department, because what you're doing could, and should, get you fired in many companies. People being lax is the biggest security issue facing the IT industry.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    Austin
    Posts
    397

    Re: [2005] stop computer form locking? [resolved]

    Quote Originally Posted by jmcilhinney
    So, your IT department has setup this timeout so that your machine will be locked if you walk away from it. Now you circumvent this policy of your company, then you walk away from your machine and forget to lock it, and someone uses your account to do something they shouldn't. It's not really our place to tell you how to circumvent your company's legitimate security policies. If you think they are too strict then you should approach your IT department, because what you're doing could, and should, get you fired in many companies. People being lax is the biggest security issue facing the IT industry.
    yes, mom!


  8. #8
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    Re: [2005] stop computer form locking?

    I currently maintain a 10 minute time out lock on any device that joins our domain. This is most certainly due to a security risk. Circumvention of this policy will most definitely result in losing your privileges of a computer at your desk. Fancy trying to complete your tasks with out a pc to do so?

    Explain why to your supervisor.
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  9. #9
    Fanatic Member bgmacaw's Avatar
    Join Date
    Mar 2007
    Location
    Atlanta, GA USA
    Posts
    524

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width