M
M
Maxim Mymrin2018-11-11 05:32:33
autohotkey
Maxim Mymrin, 2018-11-11 05:32:33

What would be the ahk Script code for this?

How to make the right alt bring the window of the desired program to the foreground if it is minimized .. And if it is in the foreground, then the program window is minimized by the same right alt ..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hazestalker, 2018-12-30
@hazestalker

RAlt::
WinGetTitle, wnd, A ;получаем заголовок с активного окна (А)
if wnd="окно"
WinMinimize, wnd ;сворачиваем
else
{
  if WinExist("окно") ;если окно с заданным заголовком существует
  WinMaximize, "окно" ;или WinActive - разворачиваем
  else
  MsgBox, нет окна "окно"
}
return
Functions , WinGetTitle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question