Hallo Zusammen,
ich habe in einem Script zwei Listboxen integriert, die je nach Funktion mal den GUICtrlSetState(<control>, $GUI_HIDE) oder ... $GUI_SHOW haben.
Nun würde ich gerne in einer Funktion sichstellen, welches der Listboxen gerade aktiv ist.
Hintergrund: ich habe unterschiedliche Kriterien für die Listboxen erstellt und lasse mir in diese, entsprechende Daten zur Auswahl bzw. zum Öffnen anzeigen. Nun wird je nach Funktionsaufruf die eine oder andere Listbox angezeigt bzw. die andere "versteckt". Der User hat die Möglichkeit die Daten zu öffnen und genau hier kommt mein Problem :wacko:
Ich rufe zur Zeit die Daten (oder Dokumente) mit
ShellExecute(GUICtrlRead(<control1>))
ShellExecute(GUICtrlRead(<control2>))
auf. Dabei werden aber leider(logischerweise) die Auswahl der beiden Controls (hier Listboxen) gestartet.
Sofern eine Listbox leer ist öffnet sich ein WinExplorer-Fenster und das soll verhindert werden.
Ich suche also sowas wie
if <control1> = Show Then
ShellExecute(GUICtrlRead(<control1>))
ElseIf <control2> = Show Then
ShellExecute(GUICtrlRead(<control2>))
EndIf
Grüße
Tim