Relatively to English layout:
* in Russian Undo is Ctrl + Z, Redo is Ctrl + Y;
* in German Undo is Ctrl + Y, Redo is Ctrl + Z.
I hope you understood my problem.
But there is a solution. A guy with absolutely the same problem found it here.
His script looks like this:
Code: Select all
; Undo Ctrl-Z
^sc02C::
Send, ^{sc015}
Return
; Redo Ctrl-Y
^sc015::
Send, ^{sc02C}
Return
But there is another problem. I put this script in Autostart so the script automatically launches when I boot my PC. But after a reboot or shutdown it becomes a mess. Now relatively to English the Undo shortcut both in Russian and German is Ctrl + Y and Redo is Ctrl + Z. But after a manual restart of the script from the tray it starts working as it should: relatively to English Undo is Ctrl + Z and Redo is Ctrl + Y both in Russian in German.
First of all I thought that this is because of the layout. So technically I use Russian and English languages, but English keyboard set to German layout since my laptop has German layout (RU - RU and EN - DE). I changed it to real German keyboard (RU - RU and DE - DE), but it didn´t help.
Also I tried to create a script which I put in Autostart and which should reload this script after 5 secs. So technically I tried to automatically reload a script after 5 secs after a startup.
Code: Select all
sleep 5000
Reload, ctrlz.ahk
ExitApp
My question is, why the script starts working in another direction after a reboot, but after a manual restart it stars working in right direction? What are the possible solutions?
P.S. Sorry, I´m very new to AHK. I surfed the Internet a lot, but still can´t understand what´s wrong and even why my workaround with reload script works not as I expect.