Sсript LWin to LAlt & Esc

Ask gaming related questions
Maxsut
Posts: 11
Joined: 09 Mar 2024, 10:02

Sсript LWin to LAlt & Esc

Post by Maxsut » 09 Mar 2024, 14:59

Good evening everyone. Tell me how to correctly write a script for replacing the Alt+Esc key combination with LWin. It doesn't work like that - LWin::LAlt & Esc ; LAlt & Esc::LWin ;

User avatar
mikeyww
Posts: 27143
Joined: 09 Sep 2014, 18:38

Re: Sсript LWin to LAlt & Esc

Post by mikeyww » 09 Mar 2024, 15:56

Hello,

Your description is too vague to code. What do you want to press? Next, what do you want to happen?

Maxsut
Posts: 11
Joined: 09 Mar 2024, 10:02

Re: Sсript LWin to LAlt & Esc

Post by Maxsut » 10 Mar 2024, 04:19

I want to press LWin, I have to press Alt+Esc. In short, I need to replace LWin with Alt+Esc.

Maxsut
Posts: 11
Joined: 09 Mar 2024, 10:02

Re: Sсript LWin to LAlt & Esc

Post by Maxsut » 10 Mar 2024, 04:50

The game does not minimize to LWin, but minimizes to LAlt + Esc

User avatar
mikeyww
Posts: 27143
Joined: 09 Sep 2014, 18:38

Re: Sсript LWin to LAlt & Esc

Post by mikeyww » 10 Mar 2024, 06:05

Though your description is short, it is still a bit baffling. Sorry if I am not following. Perhaps this will help.

Goal of script:

1. First, I PRESS ________________.

2. Second, the script SENDS _____________.

Maxsut
Posts: 11
Joined: 09 Mar 2024, 10:02

Re: Sсript LWin to LAlt & Esc

Post by Maxsut » 10 Mar 2024, 07:20

1. First, I PRESS : LWin
2. Second, the script SENDS : LAlt + Esc

User avatar
mikeyww
Posts: 27143
Joined: 09 Sep 2014, 18:38

Re: Sсript LWin to LAlt & Esc

Post by mikeyww » 10 Mar 2024, 07:59

Perhaps:

Code: Select all

#Requires AutoHotkey v2.0
; LWin Up::Send '!{Esc}'
~LWin Up:: {
 If A_PriorKey = 'LWin'
  SetKeyDelay(100), SendEvent('{Esc}!{Esc}')
}
Explained: Send parameters

Maxsut
Posts: 11
Joined: 09 Mar 2024, 10:02

Re: Sсript LWin to LAlt & Esc

Post by Maxsut » 10 Mar 2024, 08:10

doesn't work (AutoHotkey 2 is installed

Maxsut
Posts: 11
Joined: 09 Mar 2024, 10:02

Re: Sсript LWin to LAlt & Esc

Post by Maxsut » 10 Mar 2024, 08:12

Win key doesn't respond in game (


[Mod action: Moved topic to the “Gaming” section.]

User avatar
mikeyww
Posts: 27143
Joined: 09 Sep 2014, 18:38

Re: Sсript LWin to LAlt & Esc

Post by mikeyww » 10 Mar 2024, 08:31

See what it does in other windows first. Notepad is an example. You can also try the other version (commented line).

If your target window is elevated, it might require an elevated script.

Some programs block scripting. Antivirus sometimes interferes with script execution.

Maxsut
Posts: 11
Joined: 09 Mar 2024, 10:02

Re: Sсript LWin to LAlt & Esc

Post by Maxsut » 10 Mar 2024, 08:46

It works in chrome. It doesn't react in any way in the game. Thank you very much anyway. I can’t figure out the rights myself(


Post Reply

Return to “Gaming”