English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 21 November 2020, 02:37   #1
Ponki1986
Registered User
 
Join Date: Dec 2018
Location: Glubczyce / Poland
Age: 37
Posts: 168
Take control of Alt + TAB, Ctrl + Alt + Del and Ctrl + ESC.

Hello. I am trying to modify Win7 so that WinUAE and AmigaOS 3.9 start when I start my computer. There was no problem with changing the shell. But I would like to disable the key combinations mentioned in the title. Is it possible for WinUAE to completely take control of them? Generally under AmigaOS I use YAWS which switches windows with Alt + TAB. It works with both LAlt and RAlt. But when I forget and use LAlt it switches me to the windows desktop. Does anyone have proven methods that will best disable all key combinations under Windows 7?
Ponki1986 is offline  
Old 21 November 2020, 10:10   #2
Dan
Registered User
 
Dan's Avatar
 
Join Date: Nov 2004
Location: Germany
Posts: 629
you could use autohotkey (eventually autoit3 too) to redirect or to disable some of the unwanted keys.

Autohotkey is running (here) with windows 10.

and this is a part of the script, which i'm using to disable some of the keys:

(alt tab in this example)

Code:
#NoEnv				; Recommended for performance and compatibility with future AutoHotkey releases. 
SendMode Input		; Recommended for new scripts due to its superior speed and reliability. 

#InstallKeybdHook
#InstallMouseHook
#UseHook On
#SingleInstance,Force

!Tab::Return
Dan is offline  
Old 22 November 2020, 10:04   #3
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Those key combinations can't be disabled by applications without admin privileges and/or custom drivers.

Some 3rd party utility is needed, like one mentioned above.
Toni Wilen is offline  
Old 22 November 2020, 14:45   #4
Ponki1986
Registered User
 
Join Date: Dec 2018
Location: Glubczyce / Poland
Age: 37
Posts: 168
Quote:
Originally Posted by Dan View Post
you could use autohotkey (eventually autoit3 too) to redirect or to disable some of the unwanted keys.

Autohotkey is running (here) with windows 10.

and this is a part of the script, which i'm using to disable some of the keys:

(alt tab in this example)

Code:
#NoEnv				; Recommended for performance and compatibility with future AutoHotkey releases. 
SendMode Input		; Recommended for new scripts due to its superior speed and reliability. 

#InstallKeybdHook
#InstallMouseHook
#UseHook On
#SingleInstance,Force

!Tab::Return

Thank you for your answer. Looks like your method is working fine. When I pressed Alt + TAB from Workench, WinUAE was not minimized. Additionally, the Alt and TAB keys work fine under AmigaOS. Are there any other scripts to disable the Alt + F4, Ctrl + ESC, Shift + ESC and Ctrl + Alt + Del combinations?
Ponki1986 is offline  
Old 22 November 2020, 14:48   #5
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
ALT+F4 can be disabled in WinUAE by enabling "Use CTRL-F11 to quit" option. Other 3 are handled by Windows and applications can't override them.
Toni Wilen is offline  
Old 03 December 2020, 18:40   #6
Ponki1986
Registered User
 
Join Date: Dec 2018
Location: Glubczyce / Poland
Age: 37
Posts: 168
Apart from Ctrl + Alt + Del, I was able to lock down most of the key combinations. Here is the script:

Quote:
#NoEnv
SendMode Input

#InstallKeybdHook
#InstallMouseHook
#UseHook On
#SingleInstance,Force

!::<^>!

!Tab::

!F4::
Sleep, 1
WinActivate, [A1200.uae] - WinUAE

^F12::
Sleep, 1
WinActivate, [A1200.uae] - WinUAE

^F11::
Sleep, 1
WinActivate, [A1200.uae] - WinUAE

F12::
Sleep, 1
WinActivate, [A1200.uae] - WinUAE

^Esc::
Sleep, 1
WinActivate, [A1200.uae] - WinUAE

!Esc::
Sleep, 1
WinActivate, [A1200.uae] - WinUAE

<^>!Esc::
Sleep, 1
WinActivate, [A1200.uae] - WinUAE


+Esc::
Sleep, 1
WinActivate, [A1200.uae] - WinUAE

^+Esc::
Sleep, 1
WinActivate, [A1200.uae] - WinUAE

WinUAE:
Loop
{
WinSet, AlwaysOnTop , On, [A1200.uae] - WinUAE
WinActivate, [A1200.uae] - WinUAE
}
Return
Only the Win + X combinations are disabled in the system registry.
Ponki1986 is offline  
Old 13 December 2020, 07:54   #7
superfrog
Registered User
 
Join Date: Jun 2015
Location: San Francisco, USA
Posts: 168
To deal with Ctrl + Alt + Del, I go to the Input tab and add a secondary mapping for Numpad0 to target Del, with Ctrl + Alt as qualifiers. Then I can press Ctrl + Alt + Numpad0 (the key immediately to the left of Del on a standard numeric keypad) to send Ctrl + Alt + Del to WinUAE without Windows intervening. I use this to do a warm-reboot when running PC Bridgeboard emulation.
superfrog is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Black screen after pressing Ctrl Alt Del. Ponki1986 support.WinUAE 4 11 May 2019 23:29
Alt-Esc untraps mouse mark_k support.WinUAE 5 19 August 2017 21:13
Can't ALT+TAB to other apps on Ubuntu TenLeftFingers support.FS-UAE 5 31 March 2016 13:49
WinUAE crashing after Alt-Tab Steve support.WinUAE 7 31 December 2013 17:38
2.3.2 alt-tab vs priority behavior Photon support.WinUAE 0 29 July 2011 01:50

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:17.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07258 seconds with 13 queries