Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I simulate ctrl alt del [duplicate]

Tags:

python

windows

I am trying to generate a python script command line for the shortcut in ctrl alt del or go directly in "change a password", Or any executable file for that shortcut in windows 8.

I already refer to this question but its not working for me. .NET Simulate Ctrl+Alt+Del Sendkeys

My target is create an app or way directly to change a password in windows 8 or ctrl alt del and then click change a password

Any suggestion/comments, thanks in advance.

like image 291
Syntax Rommel Avatar asked Oct 19 '25 10:10

Syntax Rommel


1 Answers

As all of the answers on that question state, its very unlikely that you will be able to send this specific key combination. Crtl+Alt+Del is a privileged key combination in Windows, and I'd guess any rudimentary attempt to simulate it won't be acknowledged by Windows - for a good reason.

Most answers I've seen suggest you'll need to either use the win32com library or ctypes in Python. I won't link to them, but they are searchable using "python simulate crtl alt del".

In either case, you still need to run the app at elevated privileges which still negates the ease of use.

I'd strongly recommend that you don't do this.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!