Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

VB: Kontrollieren ob ein Programm bereits gestartet ist

Empfohlene Antworten

hallo,

meinst du ob das prog bereits läuft, oder ob des schon jemals gestartet wurde??

Ciao

Antibiotik

Wie wärs mit einer API-Funktion ? Ich hab für ein ähnliches Problem eine Funktion genutzt die heraus findet ob es ein bestimmtes Fenster schon gibt.


Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

Private Function isRunning() As Boolean

' Aufruf der API-Funktion
ClassName = "SVWORK"
WinName = "DER NAME DES PROGRAMMS"
Handle = FindWindow(ClassName, WinName)
isRunning = (Handle <> 0)

End Function
[/PHP]

Die Funktion isRunning gibt true oder false zurück, jeweils ob das Programm geöffnet ist oder nicht.

Dein Problem wird nun noch sein das Outlook seinen Fenstertitel je nach gewählten Ordner ändert. Deswegen rate ich dir mit einem Split zu arbeiten und das "-" als Delimeter zu nutzen.

PS. Outlook kann auch im Hintergrund laufen (ohne aktives Fenster), dann siehst du nur den Task im Taskmanager ("Outlook.exe"). Dies kannst du mit dem o.g. Beispiel natürlich nicht rausfinden.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.