Lo estoy haciendo así pero no me funciona:
Code: Select all
DetectHiddenWindows, on
SetTitleMatchMode, 2
Funcion1()
Funcion2()
return
Funcion1(){
Loop
{
COMPROBAR:
IfWinExist, ahk_exe mpc-be64.exe
{
SendMessage, 0x111, 888,,, ahk_class MediaPlayerClassicW
PostMessage , 0x112 , 0xF060 ,,, ahk_exe Dream Scroller.exe
Goto, ESPERAR
}
Goto, COMPROBAR
ESPERAR:
IfWinNotExist, ahk_exe mpc-be64.exe
{
SendMessage, 0x111, 887,,, ahk_class MediaPlayerClassicW
Goto, ESPERAR
}
Goto, COMPROBAR
}
}
Funcion2(){
Loop
{
WinGetTitle, VR, MPC`-HC`, D3D a pantalla completa
WinGet, Variable_unico, ID, %VR% ahk_exe mpc-hc64.exe
IfWinExist, ahk_id %Variable_unico%
{
WinSet, Bottom, , ahk_id %Variable_unico%
}
}
}
desde ya agradecido.