Possible to get file type of selected / sending Ctrl+Alt+Del Q

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
MIRKOSOFT
Posts: 334
Joined: 23 Sep 2014, 14:29

Possible to get file type of selected / sending Ctrl+Alt+Del Q

Post by MIRKOSOFT » 12 Apr 2021, 20:22

Hi!

I want to ask two questions, first simple:

How to correctly send Ctrl+Alt+Del?
I have remapped by registry Pause/Break to Del and it is problem to hit that keystroke...

Q2:
When I select file, I want to open it in application by type in order to script, not by associated application in Windows.
Is possible to get file type from its content?
Simply I need only differ these types:
- executable
- text
- picture
- video

Thank you for each help, reply or comment.
Miro
User avatar
boiler
Posts: 16926
Joined: 21 Dec 2014, 02:44

Re: Possible to get file type of selected / sending Ctrl+Alt+Del Q

Post by boiler » 12 Apr 2021, 20:30

MIRKOSOFT wrote: How to correctly send Ctrl+Alt+Del?
I have remapped by registry Pause/Break to Del and it is problem to hit that keystroke...
Send documentation wrote:Since the operating system does not allow simulation of the Ctrl+Alt+Del combination, doing something like Send ^!{Delete} will have no effect.

The other question may be possible, but I suspect it's difficult. It seems like you would need a library of headers to compare the beginnings of each file to.
MIRKOSOFT
Posts: 334
Joined: 23 Sep 2014, 14:29

Re: Possible to get file type of selected / sending Ctrl+Alt+Del Q

Post by MIRKOSOFT » 27 Apr 2021, 18:24

It is possible to enable CtrlAltDel in Windows, look here:

REGEDIT
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies
expand to find System, if doesn't exist create key "System" and create New DWORD(32) value "DisableTaskMgr"
set value to 0

That's all.

But

Code: Select all

Send ^!{Delete}
works not.

Miro
Post Reply

Return to “Ask for Help (v1)”