Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Windows 8 unlock PC
-
mikeparkie
- Posts: 17
- Joined: Wed Jul 30, 2014 9:53 am
Windows 8 unlock PC
Hello there, IÔÇÖm new to EventGhost but I understand how the program works and have successfully setup a number of macros to automate various things like turning off my monitors, sleeping the PC, rebooting the PC etc. However I was hoping to be unlock my PC using EventGhost without any additional software.
I have read through previous posts already but I donÔÇÖt see that anyone has accomplished it yet.
I have been able to use keystrokes and mouse emulation in some test profiles but the problem is I it doesnÔÇÖt work on the Windows 8.1 lock screen. What should happen is ÔÇÿaÔÇÖ is pressed on the lock screen (which slides the screen up), wait 3 seconds, and enter a pin, simple I thoughtÔǪ
Macro: PC Unlock
Event item: AutoRemote.Message.Unlock
Action Item: Turn Mute On
Window Emulate Keystroke: Emulate Keystrokes: a
Wait some time: Wait: 3.0 sec
Window Emulate Keystroke: Emulate Keystrokes: a{Numpad1}{Numpad1}{Numpad1}{Numpad1}
But nothing happens when I execute the command. Any ideas?
Thanks in advance.
I have read through previous posts already but I donÔÇÖt see that anyone has accomplished it yet.
I have been able to use keystrokes and mouse emulation in some test profiles but the problem is I it doesnÔÇÖt work on the Windows 8.1 lock screen. What should happen is ÔÇÿaÔÇÖ is pressed on the lock screen (which slides the screen up), wait 3 seconds, and enter a pin, simple I thoughtÔǪ
Macro: PC Unlock
Event item: AutoRemote.Message.Unlock
Action Item: Turn Mute On
Window Emulate Keystroke: Emulate Keystrokes: a
Wait some time: Wait: 3.0 sec
Window Emulate Keystroke: Emulate Keystrokes: a{Numpad1}{Numpad1}{Numpad1}{Numpad1}
But nothing happens when I execute the command. Any ideas?
Thanks in advance.
- Attachments
-
- s.png (10.49 KiB) Viewed 9525 times
Re: Windows 8 unlock PC
Hello,
The Problem is, that the press of "a" and so on is executed in your user context - but the lock screen has no user context.
I'm using tscon.exe to unlock my PC.
Use the System -> Execute function of EventGhost like this:
The Problem is, that the press of "a" and so on is executed in your user context - but the lock screen has no user context.
I'm using tscon.exe to unlock my PC.
Use the System -> Execute function of EventGhost like this:
-
mikeparkie
- Posts: 17
- Joined: Wed Jul 30, 2014 9:53 am
Re: Windows 8 unlock PC
Thanks Sem;colon, I will give it a try. Is that just the Add Action > Start Application > ? as my dialog looks a litte different.
Re: Windows 8 unlock PC
Yes, it looks a bit different because I use a modified version of this system plugin:
viewtopic.php?f=10&t=6195
viewtopic.php?f=10&t=6195
-
mikeparkie
- Posts: 17
- Joined: Wed Jul 30, 2014 9:53 am
Re: Windows 8 unlock PC
Thanks for the reply. So do I need your modified version in order to make it work? Do I create a folder in Plugins called Execute and then add new plugin, sorry still finding my feet with EventGhost 
If I run "tscon.exe 1 /dest:console" via the command Window (as admin) I get the following:
If I run "tscon.exe 1 /dest:console" via the command Window (as admin) I get the following:
- Attachments
-
- Capture.PNG (7.77 KiB) Viewed 9492 times
Re: Windows 8 unlock PC
Hello,
No, you don't need the modified version.
It cold be, that your session id is not 1 at the moment.
1 is the default in Windows 8, so, the first login after reboot should have this I'd.
I think you can get your session id by ÔÇ£Query SessionÔÇ£ in cmd.
And to perform this action with EventGhost, you need to run EventGhost as Admin as well.
No, you don't need the modified version.
It cold be, that your session id is not 1 at the moment.
1 is the default in Windows 8, so, the first login after reboot should have this I'd.
I think you can get your session id by ÔÇ£Query SessionÔÇ£ in cmd.
And to perform this action with EventGhost, you need to run EventGhost as Admin as well.
-
mikeparkie
- Posts: 17
- Joined: Wed Jul 30, 2014 9:53 am
Re: Windows 8 unlock PC
Query Session says the session is "1" and I modified EventGhost to launch as Administrator but it's still not working, although the arguments appear to be correct. I have attached the screenshots to show how I have configured it at the moment. A screenshot of your setup would help?
Again if I run the following in an Administrator cmd I still get the following:
Could not connect sessionID 1 to sessionname console, Error code 7045, Error [7045]:The requested session access is denied.
Any idea if EventGhost is launching tscon with admin permissions, I assume if you launch EG with admin then it should have the necessary admin permissions.
Again if I run the following in an Administrator cmd I still get the following:
Could not connect sessionID 1 to sessionname console, Error code 7045, Error [7045]:The requested session access is denied.
Any idea if EventGhost is launching tscon with admin permissions, I assume if you launch EG with admin then it should have the necessary admin permissions.
Re: Windows 8 unlock PC
correctI assume if you launch EG with admin then it should have the necessary admin permissions.
Well, the parts that are in common look similar to my config...
I use this a bit differently, I working on my Server over an RDP session and when I disconnect I should bring up my session again to the TV screen that is directly connected. And this works but I never really "lock" my PC actively... Maybe that makes a different - I don't know.
Also I'm using Windows 8.1 Pro
-
mikeparkie
- Posts: 17
- Joined: Wed Jul 30, 2014 9:53 am
Re: Windows 8 unlock PC
Thanks for the replies, I'll carry on fiddling around to see if I can crack it, but it doesn't look promising at the moment
if you think of anything else then please let me know. Thanks again for your contribution.
Re: Windows 8 unlock PC
I too would like to know how you had gotten this working. I have the exact same setup as you sem;colon, but fails to work. I ran cmd as the admin, did query session, I am session 1. When I run tscon.exe 1 /dest:console from the system32 directory, I get "The requested session access is denied" I've seen someone use NFC to unlock a computer (http://lifehacker.com/use-nfc-tags-to-u ... 1561695242). I've seen someone use Bluetooth Proximity to unlock a computer. Do you think there is somehow we can modify the script that is used in the NFC unlock? Maybe inject it into EventGhost using an action?
Re: Windows 8 unlock PC
Hello 1337,
sorry, I completely forgot to respond
Well, for me it kinda works like a described it.
The NFC unlock hack simply simulates a keyboard (hardware), it's not a software hack.
You could achieve the same result with one of those (gaming) keyboards that support keyboard macros.
You would just need a possibility to physically trigger the button that executes the macro (e.g. some relay).
sorry, I completely forgot to respond
Well, for me it kinda works like a described it.
The NFC unlock hack simply simulates a keyboard (hardware), it's not a software hack.
You could achieve the same result with one of those (gaming) keyboards that support keyboard macros.
You would just need a possibility to physically trigger the button that executes the macro (e.g. some relay).
