Einfache Lösung:
Man kann den Tastencode senden:
super key =
WINDOWS LOGO TASTE + Q
schaltet zur METROGUI.
Wert: 0x5B - Linke Windows-Taste
ssSuper: 8dez = $08 - Taste: Super-Taste / Windowstaste / Windows-Logo-Taste
So geht's:
Delphi-Quellcode:
procedure TForm1.ButtonClick(Sender: TObject);
begin
keybd_event(VK_LWIN, 0, 0, 0);
keybd_event(Ord('Q'), 0, 0, 0);
keybd_event(VK_LWIN, 0, KEYEVENTF_KEYUP, 0);
end;
METROGUI = METROUI = LAUNCHER
IsLauncherVisible
Suche in GOOGLE:
msdn IAppVisibility::IsLauncherVisible
msdn MONITOR_APP_VISIBILITY
http://msdn.microsoft.com/de-de/libr...=vs.85%29.aspx
http://msdn.microsoft.com/de-de/libr...=vs.85%29.aspx