Hi. Below is my script for Adobe Premiere. If my keyboard layout is English - it works fine. But if my keyboard layout is set to my native language - it fails. So my question is: how can I change this code to check if my language layout is not English and switch it to English? And how to do nothing if it`s English already. I`m new here. Tried to find solution by myself, but my ahk skills are at a very low level.
Code: Select all
CoordMode, Mouse, screen
CoordMode, Pixel, screen
#IfWinActive ahk_exe Adobe Premiere Pro.exe
^m::
MouseGetPos, xpos, ypos
SetKeyDelay, 0
Send s
MouseClick, left, 1028, 317
MouseClick, left, 1028, 317
Send 0.6
Sleep 500
Send {Enter}
MouseMove, xpos, ypos
#IfWinActive