Hallo Freunde der automatisierten Schritte,
Wie kann ich mit Autoit auf ein bestimmtes Icon im Systray unter Windows 8/64 klicken?
Zusätzliche Besonderheit – die Startleiste ist automatisch ausgeblendet.
Viele Grüße
AutoMit
Hallo Freunde der automatisierten Schritte,
Wie kann ich mit Autoit auf ein bestimmtes Icon im Systray unter Windows 8/64 klicken?
Zusätzliche Besonderheit – die Startleiste ist automatisch ausgeblendet.
Viele Grüße
AutoMit
Wie kann ich mit Autoit auf ein bestimmtes Icon im Systray unter Windows 8/64 klicken?
Zusätzliche Besonderheit – die Startleiste ist automatisch ausgeblendet.
Dann ist doch "klicken" ziemlicher Quatsch, denn du weißt ja was sich hinter dem Icon verbirgt. Also rufe das entsprechende Programm direkt auf.
Falls das (warum auch immer) nicht realisierbar ist, mußt du die TrayIcon der Toolbar (Window-Class "Shell_TrayWnd") auslesen und vermutlich per SendMessage ansprechen. Aber ich meine mich zu erinnern, dass es zu diesem Thema vor ca. 1-2 Monaten einen umfangreichen Thread gab.
Hier liegt bestimmt ein Missverständnis vor. Das Programm läuft bereits. Und es hat daher auch im Systray ein Icon.
Daher verstehe ich Deine Anmerkung nicht, dass sich das entsprechende Programm starten soll.
Ich möchte auf ein Icon im Systray mit der rechten Maustaste klicken, um das Kontextmenü aufzurufen, um darin entsprechend einen Eintrag auswählen zu können.
Dank Deines Stichwortes "Shell_TrayWnd" bin ich ein Stück weiter:
Rechtsklick auf Icon in SystemTray
Danke
Ich schreibe dann hier, ob es geklappt hat.
gibt schon eine Menge Bezeichnungen für das Systray
edit
Ich kennzeichne den Beitrag als erledigt, da ich Dank der Hilfe von BugFix den richtigen Thread gefunden habe.
Daher verstehe ich Deine Anmerkung nicht, dass sich das entsprechende Programm starten soll.
Bis jetzt hast du ja nur ein Tray-Icon am Idlen, dass erst auf einen Klick von dir das gewünschte Programm bzw. eine weitere Funktion dieses Programms startet. In der Regel kannst du diesen Aufruf auch direkt per Kommandozeile ausführen. Zumindest mit Systemprogrammen ist das, soweit ich weiß, weitestgehend möglich. Bsp. (USB-)Hardware auswerfen: RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll
Einfach mal bei anderen Programmen in der Doku gucken, ob nicht per Flag der gesuchte Menüpunkt im Kontextmenü direkt aufgerufen werden kann.
@BugFix - jetzt verstehe ich, was Du meinst. Sind eher kleine Utilities, bei denen es sowas nicht gibt.
Das Problem entsteht, weil du die Daten des Fensters, das bei Rechtsklick aufgeht, nicht mit dem Tool abfragen kannst (Tool gibt das Zielkreuz nur per Linksklick frei und erlaubt keine Klicks).
Du mußt also mal mit WinList dir auflisten lassen, was beim Anzeigen des Kontextmenüs für ein neues Fenster entsteht. Hast du erst das Handle kannst du auch die Menüpunkte selektieren und einzeln aktivieren.
Vielen Dank - ich habe meine Fragestellung in folgendem Thread hinterlegt. Da dort der Quellcode steht.
Der Tooltipp des Timers heißt:
"Weiter Alarm: 20.10.2015 18:31:39 Di - 1 h - anschließend 10 Minuten + le"
Und der wird genausowenig gefunden wie z.B. bei Suche nach "Arbeitsspeicher", was im Taskmanager-Tooltip vorkommt. (CPU funktioniert als Suchbegriff beim Taskmanager).
Vielleicht könnt Ihr einen Blick draufwerfen auf: --->