Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
NumpadDot::
WinGetActiveTitle, Title
FileAppend , %Title% `n, lol.txt
if Title not contains Calc, Калькулятор, Excel
Send, .
Else
{
MsgBox, The active window is "%Title%".
Send, ,
}
return
I tried saving script in UTF8, UTF8-bom, ANSI, but nothing works. I ran the script with the standard autohotkey unicode 64 exe, the ansi 32 one.
I alse tried to write active window titles to a file to see how they are coded:
Code: Select all
NumpadDot::
WinGetActiveTitle, Title
FileAppend , %Title% `n, lol.txt ; <---------
if Title not contains Calc, Калькулятор, Excel
Send, .
Else
{
Send, ,
}
return
Hope you can help me with this ridiculous puzzle Thank you!