Ticket #35056

&ShellExecuteでプログラムが最前面にならないことがある

Date d'ouverture: 2015-04-10 01:16 Dernière mise à jour: 2015-04-10 01:16

Rapporteur:
Propriétaire:
(Aucun)
État:
Ouvert
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Aucun
Fichier:
Aucun

Détails

Windowsでは、&ShellExecute()、&SetForegroundWindow()のいずれも、アプリケーションプログラムの挙動によっては 最前面で起動しないことがある。以下の4種類の設定でも、どれもうまくいくとは限らない。 しかしながら、コマンドプロンプトやエクスプローラからは必ず最前面になるので、何か異なるやり方が存在するのかも知れない。

なおWindows XP時代に比べれば、Windows 7はずいぶんマシになった方ではある。

#

include "109.nodoka"

key C-_1 = &ShellExecute("open", "C:\\Windows\\SysWOW64\\notepad.exe", ShowNormal) key C-_2 = &ShellExecute("open", "C:\\Windows\\System32\\notepad.exe", ShowNormal) key C-_3 = &ShellExecute("open", "cmd.exe", "/c notepad.exe" hide) key C-_4 = &ShellExecute("open", "C:\\Windows\\System32\\notepad.exe", ShowNormal) &SetForegroundWindow(/Notepad/)

Ticket History (1/1 Histories)

2015-04-10 01:16 Updated by: applet
  • New Ticket "&ShellExecuteでプログラムが最前面にならないことがある" created

Attachment File List

No attachments

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion