How to switch between two languages by using Right Alt+Shift
How to switch between two languages by using Right Alt+Shift
Hello,
I use two languages, English and Arabic. In Windows if I want to change the language there is an option with Left Alt+Shift, and I don't find any option to switch between languages with Right Alt+Shift.
so, is there any script in AutoHotkey to switch between two languages by using Right Alt+Shift?
I use two languages, English and Arabic. In Windows if I want to change the language there is an option with Left Alt+Shift, and I don't find any option to switch between languages with Right Alt+Shift.
so, is there any script in AutoHotkey to switch between two languages by using Right Alt+Shift?
Re: How to switch between two languages by using Right Alt+Shift
@Ahmed142, does this work?
Code: Select all
RAlt & Shift::
{
KeyWait "RAlt"
Send "{Alt down}{Shift}{Alt up}"
}
Windows 10 Pro (64 bit) - AutoHotkey v2.0+ (Unicode 64-bit)
Re: How to switch between two languages by using Right Alt+Shift
Hello mister iPhilipiPhilip wrote: ↑19 May 2022, 15:26@Ahmed142, does this work?
Code: Select all
RAlt & Shift:: { KeyWait "RAlt" Send "{Alt down}{Shift}{Alt up}" }
I tried this code and it doesn't work, there was an error, see the following pictures:
I use AutoHotkey v1 (v1.0.48.05 64-bit ANSI). Then I use Windows 11.
Last edited by Ahmed142 on 20 May 2022, 05:02, edited 1 time in total.
Re: How to switch between two languages by using Right Alt+Shift
@Ahmed142, you received the error because you are trying to run code written for AutoHotkey v2 under AutoHotkey v1. Since you posted your request for help in this forum (AutoHotkey v2 Help), I posted AutoHotkey v2 code. If your environment is AutoHotkey v1, you can use this code.
I recommend you upgrate to the latest version of AutoHotkey v1 (v1.1.34.02).
Code: Select all
RAlt & Shift::
KeyWait RAlt
Send {Alt down}{Shift}{Alt up}
return
Windows 10 Pro (64 bit) - AutoHotkey v2.0+ (Unicode 64-bit)
Re: How to switch between two languages by using Right Alt+Shift
Thread will be moved to the AHK V1 Help section.I use AutoHotkey v1 (v1.0.48.05 64-bit ANSI). Then I use Windows 11.
Re: How to switch between two languages by using Right Alt+Shift
You might better try use a function viewtopic.php?f=6&t=18519
Re: How to switch between two languages by using Right Alt+Shift
Thank you mister iPhilip for your second replyiPhilip wrote: ↑20 May 2022, 10:52@Ahmed142, you received the error because you are trying to run code written for AutoHotkey v2 under AutoHotkey v1. Since you posted your request for help in this forum (AutoHotkey v2 Help), I posted AutoHotkey v2 code. If your environment is AutoHotkey v1, you can use this code.
I recommend you upgrate to the latest version of AutoHotkey v1 (v1.1.34.02).Code: Select all
RAlt & Shift:: KeyWait RAlt Send {Alt down}{Shift}{Alt up} return
First: this script seems works, but I discovered that my problem is with other thing and Right Alt+Shift was working with windows 11, and I was wrong that Right Alt+Shift doesn't work in Windows 11 because it works but my problem is with keyboard layout because every time in a specific case I switch between languages the keyboard layout appears for a moment and that annoying for me so maybe I post other post for that problem in future.
Second: Thank you for your recommendation I downloaded the latest version.
Last edited by Ahmed142 on 21 May 2022, 03:15, edited 1 time in total.
Re: How to switch between two languages by using Right Alt+Shift
I suggest to delete this thread and delete my original post because I was wrong and Right Alt+Shift is working in Windows 11 for switching between two languages, and my problem is with other thing.