Jump to content

How to move the computer locked screen


Recommended Posts

Hey All

I am new for script. Auto IT script will work when computer is locked mode? How to move the computer locked screen to bottom of screen?

-= [font="Verdana"]A Men Who believes in himself and not circumstances is the real Winner =-[/font]

Link to comment
Share on other sites

  • Moderators

Welcome to the forum.

Yes, most AutoIt functions can work while the computer is locked.

I have no idea if the "computer locked screen" can be moved.

When the PC is locked, it has no title (well zero as a return, trying to figure that one out), no class, and no handle... Would make it kind of difficult to move with standard autoit functions muttley .

Run this in SciTe, then lock the PC, then Unlock:

#include <winapi.au3>
Local $h_last_win, $h_old_win
While 1
    $h_last_win = WinGetHandle("")
    If $h_last_win <> $h_old_win Then
        ConsoleWrite("Title: " & WinGetTitle($h_last_win) & "  |  " & "Class: " & _WinAPI_GetClassName($h_last_win) & "  |  HWND: 0x" & Hex($h_last_win, 8) & @CRLF)
        $h_old_win = $h_last_win
    EndIf
    Sleep(100)
WEnd
Look at the output pane.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

When the PC is locked, it has no title (well zero as a return, trying to figure that one out), no class, and no handle... Would make it kind of difficult to move with standard autoit functions muttley .

Run this in SciTe, then lock the PC, then Unlock:

#include <winapi.au3>
Local $h_last_win, $h_old_win
While 1
    $h_last_win = WinGetHandle("")
    If $h_last_win <> $h_old_win Then
        ConsoleWrite("Title: " & WinGetTitle($h_last_win) & "  |  " & "Class: " & _WinAPI_GetClassName($h_last_win) & "  |  HWND: 0x" & Hex($h_last_win, 8) & @CRLF)
        $h_old_win = $h_last_win
    EndIf
    Sleep(100)
WEnd
Look at the output pane.
Your are correct !

Output pane say's "Title: 0 | Class: | HWND: 0x00000000"

Any other way to move the locked Screen ??

-= [font="Verdana"]A Men Who believes in himself and not circumstances is the real Winner =-[/font]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...