0

Have a problem with certain program which would only correctly minimize or maximize by clicking on his taskbar icon any other way would result in unsatisfactory result i.e using autohotkey can't work to my knowledge. Could I replicate with autohotkey messages sent when minimizing or maximizing program from taskbar with mouse and which are those messages?

This is curent code:

<!3::  ; <--- SuperMemo



If (!WinExist("ahk_exe sm18.exe"))

ShellRun("C:\SuperMemo\sm18.exe")

else
{
    if(!WinActive("ahk_exe sm18.exe"))
    {
        WinRestore, ahk_class TApplication
        sleep, 1000
        WinRestore, ahk_class TElDataWind
    }
    else
        WinMinimize, ahk_class TApplication
        sleep, 1000
        WinMinimize, ahk_class TElDataWind
}

return

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.