DDE Key for "Restore"

Started by IcErZ,

IcErZ

is there a DDE Key/Message (or cmd option) for "Restore"?

I want xmplay to come out from the tray...
without using /MinimiseTray or /Minimise
bc i would use the same cmd multiple times

thx

Ian @ un4seen

Unfortunately, there isn't a restore option (only a minimize/restore toggle). Are you able to send messages to the XMPlay window? If so, you could try sending a WM_SYSCOMMAND message with wParam=SC_RESTORE to it. If you can call functions, another possibility is the ShowWindow function with SW_RESTORE.

robertcollier4

#2
I use the following AutoHotkey command to bind F12 to show XMPlay. Depending on if the window exists, it either runs XMPlay from scratch or shows the window.
F12::
IfWinNotExist, ahk_class XMPLAY-MAIN
{
    Run, "D:\PortableApps\XMPlay\xmplay.exe"
} Else {
    WinRestore, ahk_class XMPLAY-MAIN
    WinActivate, ahk_class XMPLAY-MAIN
}
Return

1c3rz

my idea was that everytime i qeue/start/add a new file/cd using a cmd-line it comes out of the tray.

i do it now with a batch:
@echo off
start nircmd win min process "xmplay.exe"
start xmpcontrol.exe /Minimise
start xmplay.exe %1
exit /b

using nircmd and XMPlay Controller