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.

[C#] move_mouse() und sendkeys.send()

Empfohlene Antworten

Veröffentlicht

Hi alle,

Kurz zum Vorhaben.

Ich habe 2 Programme eines, das die sendkeys.send und mouse_move verwendet und eines, das eine Kamera steuert! Ich möchte die Kamerasicht jedoch im Code steuern!

Also ich hab folgendes Problem!

Es gibt in C# die Methode sendkeys.send(...) diese sendet

einen Tastatur Key zur aktiven Anwendung, sprich die mit dem Focus!

Geht das den mit der funktion mouse_move auch oder gibt es da was anderes?

Ich habe es bereits mit mouse_move versucht jedoch ohne Erfolg!

PS: Das Program, das sendkeys.send() verwendet hat beim laufen des Kamera Programms keinen Fokus, das Kamera Program hat den Fokus!

MfG

CTom

Also,

ich habe eine Lösung gefunden, wenn auch nicht ganz sauber!

Der Rechtsklick reagiert nur auf dem Desktop und nicht auf ein Programm das im Fullscreen läuft (so wie bei mir).

Aus diesem Grund mache ich einen ALT+TAB lasse im code MOVEEVENTF_RIGHTDOWN (Rechtemaustaste drücken), springe wieder ins Programm und mache meine Bewegung (mit Cursor.Position = new Point(x,y))! Das selbe gilt beim MOVEEVENTF_RIGHTUP!

Ist zwar nicht so sauber aber es geht!

MfG

CTom

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.