Sending keys to windows 7 lock screen
Hey there,
I am trying to remotely unlock my lock screen on a windows 7 system by using the: sendkeys command.
I got it working fine on notepad but it wont work when its locked. The sended 'keys' wont appear in the lockscreen while it has the focus.
Is there a way to bypass this? Or even better, is there a way to unlock it with a simple shell command?
Thanks in advance,
Jason8100
Re: Sending keys to windows 7 lock screen
Option Explicit
Private Declare Function LockWorkStation Lib "user32.dll" () As Long
Private Sub Command1_Click()
LockWorkStation
End Sub
Re: Sending keys to windows 7 lock screen
Quote:
Originally Posted by
useruseronline
Option Explicit
Private Declare Function LockWorkStation Lib "user32.dll" () As Long
Private Sub Command1_Click()
LockWorkStation
End Sub
Not sure why you think that would work. First of all he wants to unlock it rather than lock it and you can not click a command button when the workstation is locked.
Re: Sending keys to windows 7 lock screen
he wrote lock screen in thread title bro , i thought he wonts to lock it
Re: Sending keys to windows 7 lock screen
Yes the title could be confusing. I took it to mean that he wants to send keys to the lock screen, most likely to unlock it which is pretty much what is indicated in the first post.
As for the actual question, I am not aware of any way to remotely unlock the computer other than of course connecting to it with a remote desktop connection which would start a new user session.
Re: Sending keys to windows 7 lock screen
hmmm okay, and what about creating my own lockscreen. where would i start?
How do i secure it from being bypassed with lets say ctrl + alt + del?
Re: Sending keys to windows 7 lock screen
why should u create ur own screen , just protect the orginal one from ctrl alt dlt by disabling this function
Re: Sending keys to windows 7 lock screen
Quote:
Originally Posted by
useruseronline
why should u create ur own screen , just protect the orginal one from ctrl alt dlt by disabling this function
Because i want to lock and unlock my pc remotely and since the normal lock screen wont do this, making my own lock screen would be a solution.